JSON-XS
JSON::XS implements JSON (http://www.json.org) for Perl. Unlike other
modules, its primary goal is to encode to syntactically correct JSON and
flag invalid JSON while decoding. It ensures round-trip integrity of
datatypes while being intuitive to use. Currently being the fastest of the
JSON encoders available for Perl, it supports a variety of format options,
such as single-line, ASCII-only or pretty-printed and can be tuned for
speed or memory usage. It comes with a wealth of documentation describing
usage and implementation details.