for template with json data