Fixed a formatting bug in query_json_template

Fixed a json formatting issue that makes the template unreadabe as a
json.