Adds data-json-convert method to template.