Subject: | '0' not handled correctly in converting JSON to XML |
The JSON structure:
{ "foo": { "bar": 0 } }
Is converted to this XML:
<foo bar=""/>
However, it should be:
<foo bar="0"/>
This appears to be due to these lines in _process_element_hash():
my $Value = $Obj->{$Key} || q{};
These should be changed to:
my $Value = $Obj->{$Key} // q{};
(Or something more convoluted if you want to support something before
perl 5.10).