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.
In reply to Re^10: JSON::XS and blessings
by cshavit
in thread JSON::XS and blessings
by cshavit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |