package Template::Plugin::deJSON;
=head1 NAME
Template::Plugin::DeJSON - de-JSONify a JSON string
=head1 SYNOPSIS
[%
USE deJSON;
hash = deJSON.deJSON(json_string);
FOREACH field=ha
IPTION
Well, I needed this. I had JSON string things flying around between servers,
and passed into templates. (If you must know, objects were stringified using
JSON, and bit-shifted around the world
thing a bit more useful.
So it takes a JSON string, and gives you back a hash. Or me. It gives it back
to me. YMMV.
It also copes with JSON strings within JSON strings, returning a nice data
structu