Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6611863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:01:34+00:00 2026-05-25T20:01:34+00:00

This line my $json = new JSON(autoconv => 0); # <– line X raises

  • 0

This line
my $json = new JSON(autoconv => 0); # <-- line X
raises this error

Usage: JSON::XS::new(klass) at (...) line X

What’s wrong?

It’s a follow up to my question Is there a way to force quotation of numbers in JSON 1.x Perl module?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:01:35+00:00Added an answer on May 25, 2026 at 8:01 pm

    The API for the JSON module changed substantially between 1.15 and 2.00. Code written for JSON 1.x won’t necessarily work with JSON 2.x. In particular, the 1.x constructor took optional parameters. The 2.x constructor takes no parameters; instead, you use mutator functions after construction.

    If you must support both JSON 1.x and 2.x for some reason, you’ll need to check if JSON->VERSION < 2 (actually JSON->VERSION < 1.99 if you count the development releases of the 2.x API) and have two versions of your code, one for the 1.x API and one for 2.x.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This line is giving error: Too few arguments. What is the problem? $InsertQuery =
Having this line Cursor c = db.rawQuery(PRAGMA table_info(?), new String[] {tableName}); and getting this:
I have the following code but I get an error on this line userSpinner.setAdapter(adapter);
Hi folks I have the following error on line 11 in this controller code
First time working with javascript and JSON. Curious why this causes a comiler error:
Please help me why i'm getting this error. I'm getting Json response converting into
I'm getting the following error: undefined method `id' for #<Array:0x00000101ff0b70> On this line: <%=
This line in YUI's Reset CSS is causing trouble for me: address,caption,cite,code,dfn,em,strong,th,var { font-style:
This line of code ((Matches)Container.DataItem).MatchID works in C# but in VB.NET, when used in
this line of the code makes the form see-through User32Wrappers.SetLayeredWindowAttributes(Me.Handle, 0, _ 255 *

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.