Closed nichtich closed 9 years ago
Waiting for a new release of JSON-PP seems to be no option (no activity since 2013). I would consider this module as orphaned. Somebody else should take over maintenance.
Look at this CPAN Adotion List. JSON and JSON::PP are there and a lot of other important modules, which are not up-to-date. I wonder, how the community will face the challenge...
i would vote to add JSON::XS as a dep. it's already a dependency of a dependency of some Catmandu addons. YAML::XS is also already a dependency.
switched to JSON::XS in df423486fa944b98acdd6b0a900b50a2ffdc24bd
There is a bug in JSON importer. If JSON::XS is not installed, the JSON module uses JSON::PP which is in core since Perl 5.14 but it has a bug:
I added a test in a branch to show how this affects Catmandu: https://github.com/LibreCat/Catmandu/commit/ce4ce7a153e32400a333b8fea319fbf80a079311
Solution:
Alternative Solution (which I don't prefer because XS modules are more difficult to install):
Without a fix, Catmandu is not able to import arbitrary JSON files but only one-liners, I'd call this a serious bug.