in reply to how to decode JSON::PP::Boolean

If you see the error sh -c ..., then that means that your file is being run by the shell and not by Perl.

The code you show does not have 102 lines and does not look as if it is run by your shell at all. Please show a short, self-contained program (and the JSON input) that reproduces the output.