http://qs321.pair.com?node_id=956694

matija has asked for the wisdom of the Perl Monks concerning the following question:

Does anybody have code handy for parsing and generating JSON without all the complications accounted for by JSON.pm, JSON::XS.pm and JSON::PP.pm?

Explanation: I have to write a script for a client machine which has Perl 5.8.8, and was deliberately set up without gcc and other development tools "to make it safe from hackers" (sheesh).

Since the installation does not contain B, and I can't install it, none of the above (standard, expected) JSON modules can be installed: they all seem to need B.

Does anybody know of a very simple module that would do basic JSON parsing and generating without needing B? Or at least a way to find which version is old enough that it would run without B on the server?