Perl implementation of JSON Template