Skip Menu |

This queue is for tickets about the JSON CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: hg [...] apteryx.fr
Cc:
AdminCc:

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



Hi, JSON::PP::true->isa('JSON::Boolean') is false, which does not seem logical.
You perhaps use JSON::XS as the backend? You should write the code: BEGIN { $ENV{PERL_JSON_BACKEND} = 0; } use JSON; print JSON::PP::true->isa('JSON::Boolean'); If you don't know what the backend module is used, you should not use JSN::PP::true but JSON::true.
From: hg [...] apteryx.fr
Le Mer. Mar. 19 21:56:39 2008, MAKAMAKA a écrit : Show quoted text
> You perhaps use JSON::XS as the backend? > You should write the code: > > BEGIN { $ENV{PERL_JSON_BACKEND} = 0; } > use JSON; > print JSON::PP::true->isa('JSON::Boolean'); > > If you don't know what the backend module is used, > you should not use JSN::PP::true but JSON::true.
I use JSON -support_by_pp with : my $json = JSON->new ->allow_barekey ->allow_singlequote ->utf8; I don't use JSON::PP::true directly, but JSON::PP:true is returned by $json->decode when encountering 'true'.
I released the new vesion 2.08 resolving the problem. Thanks,