We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to ensure that the parser translates false into 0 instead of an empty string ?
false
0
The text was updated successfully, but these errors were encountered:
The empty string is perl's default false value, so I don't think there will be an option to support 0.
Starting with YAML::XS 0.66_001, you can use this:
local $YAML::XS::Boolean = "JSON::PP"; # or "boolean" my $data = Load("booltrue: true"); $data->{boolfalse} = JSON::PP::false; my $yaml = Dump($data); # boolfalse: false # booltrue: true
See more about this in the docs. Maybe this helps you as the string value of JSON::PP::Boolean and boolean.pm false objects is 0.
I will close this issue when YAML::XS 0.67 is released, unless there are further questions.
Sorry, something went wrong.
No branches or pull requests
Is it possible to ensure that the parser translates
false
into0
instead of an empty string ?The text was updated successfully, but these errors were encountered: