Format JSON output for template so it is readable via web ui