diff Implab/Formats/JSON/StringTranslator.cs @ 226:9428ea36838e v2

fixed JSON parser error when parsing escaped double quote symbol
author cin
date Fri, 25 Aug 2017 02:16:35 +0300
parents c32688129f14
children 6fa235c5a760
line wrap: on
line diff
--- a/Implab/Formats/JSON/StringTranslator.cs	Wed Aug 23 02:38:02 2017 +0300
+++ b/Implab/Formats/JSON/StringTranslator.cs	Fri Aug 25 02:16:35 2017 +0300
@@ -16,8 +16,8 @@
         static readonly int[] _hexMap;
 
         static StringTranslator() {
-            var chars = new char[] { 'b', 'f', 't', 'r', 'n', '\\', '/' };
-            var vals = new char[] { '\b', '\f', '\t', '\r', '\n', '\\', '/' };
+            var chars = new char[] { 'b', 'f', 't', 'r', 'n', '\\', '/', '"' };
+            var vals = new char[] { '\b', '\f', '\t', '\r', '\n', '\\', '/', '"' };
 
             _escMap = new char[chars.Max() + 1];