Skip Menu |

This queue is for tickets about the Catalyst-Plugin-JSONRPC CPAN distribution.

Report information
The Basics
Id: 34449
Status: new
Priority: 0/
Queue: Catalyst-Plugin-JSONRPC

People
Owner: Nobody in particular
Requestors: stennie [...] cpan.org
Cc:
AdminCc:

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



Subject: Deprecated function warnings with JSON 2.x installed
Howdy, There have been some API changes in JSON 2.00 or higher which now generate warnings for Catalyst::Plugin::JSONRPC: 'jsonToObj' will be obsoleted. Please use 'from_json' instead. at /usr/local/share/perl/5.8.8/Catalyst/Plugin/JSONRPC.pm line 16 'objToJson' will be obsoleted. Please use 'to_json' instead. at /usr/local/share/perl/5.8.8/Catalyst/Plugin/JSONRPC.pm line 73 The JSONRPC functionality still works fine as of JSON 2.07, but would be helpful to have an updated version so the warnings go away (and this doesn't suddenly break in a future release). There's a section on other changes in the JSON module docs: http://search.cpan.org/~makamaka/JSON-2.07/lib/JSON.pm#Transition_ways_from_1.xx_to_2.xx. Fix seems to be as straightforward as: s/jsonToObj/from_json/gs s/objToJson/to_json/gs Cheers, Stephen