serialize data as YAML booleans:
When set to C<"JSON::PP"> or C<"boolean">, the plain (unquoted) strings C<true> and C<false> will be loaded as C<JSON::PP::Boolean> or C<boolean.pm> objects. Those ob
will try to load [JSON::PP] or [boolean] and die if it can't be loaded.
With that it's possible to add new "real" booleans to a data structure:
local $YAML::XS::Boolean = "JSON::PP"; # or "boole
JSON::PP::false;
my $yaml = Dump($data);
# boolfalse: false
# booltrue: true
It also lets booleans survive when loading YAML via YAML::XS and encode it in JSON via one of the various JSON