in reply to Re^9: JSON::XS and blessings
in thread JSON::XS and blessings
my $json = '{"a":true}'; $d = decode_json($json); printf "Dumper: %s<br>\n",Dumper($d);
prints the same: Dumper: $VAR1 = { 'a' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) };
Yet encode_json($d) fails on one and works correctly on the other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: JSON::XS and blessings (incompat)
by tye (Sage) on Oct 16, 2015 at 15:01 UTC | |
by cshavit (Novice) on Oct 16, 2015 at 21:54 UTC |