Bug#566822: decode does not behave as documented

2010-01-25 Thread gregor herrmann
forwarded 566822 http://rt.cpan.org/Public/Bug/Display.html?id=53975 thanks On Mon, 25 Jan 2010 09:15:00 +, Florian Weimer wrote: > results in the following output: > > $VAR1 = { > 'test' => bless( do{\(my $o = 1)}, 'JSON::XS::Boolean' ) > }; > > Expected output, based on

Bug#566822: decode does not behave as documented

2010-01-25 Thread Florian Weimer
Package: libjson-xs-perl Version: 2.270-1 Severity: important The documentation says this: $perl_scalar = $json->decode ($json_text) The opposite of "encode": expects a JSON text and tries to parse it, returning the resulting simple scalar or reference. Croaks on erro