define a template tag to render a form to json