in reply to Re^2: JSON module & decoding boolean data
in thread JSON module & decoding boolean data

If you use these values (e.g. in print, if or mathematical calculation), these will work as 0 or 1

UPDATE:

# perl -MJSON::XS -e '$x = q/{"bool":true}/;$y=decode_json($x);print " +$y->{bool}\n"' 1

Replies are listed 'Best First'.
Re^4: JSON module & decoding boolean data
by rovingeyes (Sexton) on Apr 22, 2010 at 18:39 UTC
    Thanks, that is all I was looking for.