You'll have to traverse the returned data structure, using JSON::is_bool to check for boolean nodes, replacing boolean nodes with the values of your choice.
If PHP::Serialization supported custom object serializers, you could just write one of those for JSON::PP::Boolean, but it doesn't appear to be the case.
In reply to Re^3: Why is Dumper showing decoded JSON booleans like this?
by ikegami
in thread Why is Dumper showing decoded JSON booleans like this?
by nleaman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |