Skip Menu |

This queue is for tickets about the JSON CPAN distribution.

Report information
The Basics
Id: 32361
Status: resolved
Priority: 0/
Queue: JSON

People
Owner: Nobody in particular
Requestors: 3cvbejv02 [...] sneakemail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.01
Fixed in: (no value)



Subject: Failed backwards compatibility crasher
Now that JSON uses JSON::XS as backend, using JSON->new with parameters (specifically the "unmapping" parameter, though the error message wording makes it sound like it would happen with any others also) immediately bombs with << Usage: JSON::XS::new(klass) >>. This is with JSON 2.01 and JSON::XS 2.01; I haven't tried it with later versions of JSON but I don't see changes that would affect the behavior. I realize the JSON 2 API is rather different than the JSON 1 API, but I don't see anything in the transition documentation from version 1 saying that the new() parameters were going to go away, nor any period of warning in between (though I might be wrong about that).
Show quoted text
>I realize the JSON 2 API is rather different than the JSON 1 API, >but I don't see anything in the transition documentation from >version 1 saying that the new() parameters were going to go away, >nor any period of warning in between (though I might be wrong about that).
What you said is right. The documents say nothing about it directly. In the current version document, 'Transition ways from 1.xx to 2.xx' points to it. Thanks,