JSON::XS 2.2 (Default branch) |
|
|
JSON::XS implements JSON 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
data types 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.
License: Perl License
Changes:
Versions beginning with 2.01 act as a backend for JSON; the JSON module will automatically use JSON::XS when it is available, and should otherwise fall back to a fully-compatible pure Perl implementation. A very fast incremental parser has been added that can be used (among other things) to parse self-delimited JSON streams. Boolean values returned by decode are now mutable, and the restriction of having to use powers of two for resource limits has been lifted. A command line utility has been added that can pretty-print JSON and convert from/to a number of other formats.
|