Subject: | Use JSON:PP::Boolean compatible booleans |
Currently, JSON::XS, Mojo::JSON, and (obviously) JSON::PP use booleans that appear to be (or are) JSON::PP::Boolean. Mojo::JSON has made this change recently, opting to simply use the JSON::PP booleans directly, since it is a core module in 5.14+ (https://github.com/kraih/mojo/commit/7a65c82cc4e3f22a348e27e1663ce02ff5390583). Cpanel::JSON::XS is planning to represent its booleans as JSON::PP::Boolean instead of the current JSON::XS::Boolean (which JSON::XS no longer uses anyway) (https://github.com/rurban/Cpanel-JSON-XS/commit/f6d3826e17d67979933cc19168215790684f940d). JSON::XS uses Types::Serialiser booleans which are aliased to JSON::PP::Boolean (https://metacpan.org/source/MLEHMANN/Types-Serialiser-1.0/Serialiser.pm#L105).
It would be appropriate for JSON::Tiny to follow this pattern as well, by any of the above methods.