<% local view, viewlibrary, page_info = ... %> <% require("json") require("html") %> Status: 200 OK Content-Type: "application/json" <% io.write("\n") %> <% view.value.filecontent.value = html.html_escape(view.value.filecontent.value) print(json.encode(view)) %>