In Perl, checking a json decoded boolean value In Perl, checking a json decoded boolean value json json

In Perl, checking a json decoded boolean value


It will be a truthy value in Perl. Just access it as normal.

print 'true' if $decoded_json->{'boolean_field'};