Skip Menu |

This queue is for tickets about the JSON-Any CPAN distribution.

Report information
The Basics
Id: 31315
Status: resolved
Priority: 0/
Queue: JSON-Any

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

Bug Information
Severity: Critical
Broken in: 1.13
Fixed in: (no value)



Subject: JSON::XS 2.0 broke tests
On 2007-12-05 a new JSON::XS was uploaded which is incompatible with pre-2.0. See the failing tests at http://www.nntp.perl.org/group/perl.cpan.testers/2007/12/msg843299.html Hope that helps,
From: igor.sutton [...] gmail.com
Hi, On Sun Dec 09 09:23:34 2007, ANDK wrote: Show quoted text
> On 2007-12-05 a new JSON::XS was uploaded which is incompatible with > pre-2.0. See the failing tests at > > http://www.nntp.perl.org/group/perl.cpan.testers/2007/12/msg843299.html > > > Hope that helps,
Attached is a patch that seems to fix the problem. -- Igor
diff -r -u JSON-Any-1.13/lib/JSON/Any.pm JSON-Any-1.13.local/lib/JSON/Any.pm --- JSON-Any-1.13/lib/JSON/Any.pm 2007-11-07 01:29:32.000000000 +0100 +++ JSON-Any-1.13.local/lib/JSON/Any.pm 2007-12-12 10:19:37.000000000 +0100 @@ -72,8 +72,8 @@ }, json_xs => { - encoder => 'to_json', - decoder => 'from_json', + encoder => 'encode_json', + decoder => 'decode_json', create_object => sub { require utf8; utf8->import();
This is fixed now in JSON::Any 1.14. Sorry for the trouble.