From 3800362c77c2beffeb08b5c30bcbc4c085e2929b Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 3 May 2014 21:59:07 +0200 Subject: [PATCH] Fix Json output format, to be able to compliant with JSON description --- web/CXM_json.anubis | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/CXM_json.anubis b/web/CXM_json.anubis index e2e967f..a5e8859 100644 --- a/web/CXM_json.anubis +++ b/web/CXM_json.anubis @@ -126,7 +126,7 @@ public define Printable_tree JsonMember member ) = if member is json_member(name, value) then - [ "'", name, "':" . format_json(value) ]. + [ "\"", name, "\":" . format_json(value) ]. define Printable_tree @@ -162,7 +162,7 @@ public define Printable_tree json_array(values) then [ "[", format_json_array(values), "]" . [] ], json_int(i) then int_pt(i, []), json_float(f, p) then str_pt(float_to_string(f, p), []), - json_string(s) then str_pt("'" + format_json_esc(s) + "'", []), + json_string(s) then str_pt("\"" + format_json_esc(s) + "\"", []), json_bool(b) then str_pt(if b then "true" else "false", []), json_null then str_pt("null", []) }. -- libgit2 0.21.4