This plugin provides a .json vmethod to all value types when loaded. WWW: http://search.cpan.org/dist/Template-Plugin-JSON/