Commit a72e0f59 authored by Ivan Tyagov's avatar Ivan Tyagov

Return JSON.

parent 8dfd7cfe
......@@ -32,7 +32,7 @@ context.log(http_method)
if http_method == "GET":
# assume read request, return what was saved.
return default_opcua_document.getNodeDict()
return json.dumps(default_opcua_document.getNodeDict())
elif http_method == "POST":
# assume write request
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment