Mercurial > pub > ImplabNet
changeset 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 | 8222a2ab3ab7 |
children | 8d5de4eb9c2c |
files | Implab/Formats/JSON/StringTranslator.cs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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];