print json to template