Skip Menu |

This queue is for tickets about the XML-XML2JSON CPAN distribution.

Report information
The Basics
Id: 76603
Status: open
Priority: 0/

Owner: perl [...]
Requestors: mfontani [...]

Bug Information
Severity: Important
Broken in: 0.06
Fixed in: (no value)

Subject: Spurious warning emitted
Download (untitled) / with headers
text/plain 375b
The _init subroutine emits a warning, with no conditionals. This clutters up the output, and any log files which read the STDERR (such as the Apache error log). Within sub _init { [...] warn "loaded module: $Self->{_loaded_module}"; I assume the above line should be changed to contain a suffixed "if $Self->{debug}" in order to fix this issue. Thanks! -marco-
Download (untitled) / with headers
text/plain 977b
Sorta related ... We encountered a bug where we were writing to disk a data structure using XML2JSON, on a machine that had both JSON::Syck and JSON::XS It appears in this situation that XML2JSON prefers JSON::Syck. Our problem was that we were then later on reading in that json file from disk using JSON::XS. The output from JSON::Syck is sometimes, but not always, compatible with JSON::XS. The fix for us was to force XML2JSON to use JSON::XS my $xml2json = XML::XML2JSON->new( module => 'JSON::XS' ); I speculate that doing this might implicitly silence the erroneous warning reported in this bug report, because JSON::Syck will simply not get loaded if you tell XML2JSON to use JSON::XS That nobody has previously reported this bug might suggest many are already preferring JSON::XS explicitly. While it would actively change the "API" behaviour of this module, I wonder if it is at all worth considering that XML2JSON prefer JSON::XS over JSON::Syck by default?

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to