in reply to Getting JSON::PP:Boolean value
If I just assign them to another variable they are undef.
Here is the SSCCE your post omitted showing that this is not the case.
use strict; use warnings; use JSON::PP; use Test::More tests => 2; my $in = '{ "z": true, "y": false }'; my $out = decode_json ($in); my $z = $out->{z}; my $y = $out->{y}; is ($z, JSON::PP::true, "z is true" ); is ($y, JSON::PP::false, "y is false" );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting JSON::PP:Boolean value
by stevieb (Canon) on May 24, 2017 at 13:22 UTC |