]> xenbits.xensource.com Git - xenclient/toolstack.git/commitdiff
fix json escape for \
authorPrashanth Mundkur <prashanth.mundkur@citrix.com>
Thu, 18 Jun 2009 01:22:07 +0000 (18:22 -0700)
committerPrashanth Mundkur <prashanth.mundkur@citrix.com>
Tue, 23 Jun 2009 16:41:51 +0000 (09:41 -0700)
libs/json/json.ml

index ed369a59fba20952f7c29520e0f19ae9dddd80cf..9e707a0dd9692d1b322ce59c932b230bc110c499 100644 (file)
@@ -50,6 +50,7 @@ let escape_string s =
                        | '\t'   -> "\\t"
                        | '\r'   -> "\\r"
                        | '\b'   -> "\\b"
+                       | '\\'   -> "\\\\"
                        | '/'    -> "\\/"
                        | '"'    -> "\\\""
                        | '\x0c' -> "\\f"