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).