in reply to Converting some MapReduce PHP scripts to Perl
This is Perl. Use CPAN and it becomes trivial to deal with JSON