Introduction to JSON in Perl

JSON has become a popular data representation format, and can been seen as the successor of XML which used to be the most popular format used for data exchange between systems. Notable examples of JSON being used for data representation are Facebook Graph API & Flickr API, amongst many others. Javascript frameworks like jQuery & and the likes have in-built support for automatic handling of JSON responses in AJAX calls.

JSON Parsing in Perl

Like most of the Perl modules JSON module is found on CPAN, which under the hood has a C API (JSON::XS) as well as Pure-Perl API (JSON:PP) which is used in case the C-API is unavailable, the C API being faster of the two.