NAME

Template::Plugin::SimpleJson - Simple JSON methods for Template Toolkit

SYNOPSIS

[% USE SimpleJson %]

[% scalar = SimpleJson.fromJson(json_text) %]
[% text = SimpleJson.toJson(scalar) %]

DESCRIPTION

This module implements some methods to manipulate json string, using JSON module

METHODS

fromJson

Converts a json string to a perl scalar

toJson

Converts a perl scalar to a json string

AUTHOR

Fabio Masini <fabio.masini@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2009 Fabio Masini

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.