This plugin provides a .json vmethod to all value types when loaded. WWW: https://metacpan.org/release/Template-Plugin-JSON