JSON::Create::PP - Pure-Perl version of JSON::Create
This is a reference and backup module for JSON::Create. It is meant to do exactly the same things as JSON::Create, but there are a few discrepancies, which should be treated as bugs.
This uses Carp to report errors.
Scalar::Util is used to distinguish strings from numbers, detect objects, and break encapsulation.
This is used to do the validation of UTF-8.
Floating point printing cannot be made to work like the XS version.
The XS version tests for NV or IV directly, but it is next to impossible to get this information from Perl without XS.
To test this module, do
make JSONCreatePP=1 make test