From: Prashanth Mundkur Date: Thu, 18 Jun 2009 01:22:07 +0000 (-0700) Subject: fix json escape for \ X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=eeff0b8b98dff445c71cd4aaa6cfd98b8bac5d44;p=xenclient%2Ftoolstack.git fix json escape for \ --- diff --git a/libs/json/json.ml b/libs/json/json.ml index ed369a5..9e707a0 100644 --- a/libs/json/json.ml +++ b/libs/json/json.ml @@ -50,6 +50,7 @@ let escape_string s = | '\t' -> "\\t" | '\r' -> "\\r" | '\b' -> "\\b" + | '\\' -> "\\\\" | '/' -> "\\/" | '"' -> "\\\"" | '\x0c' -> "\\f"