瀏覽代碼

Fix escape-string issue

isundil 9 年之前
父節點
當前提交
89690b6185
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/streamConsumer.cpp

+ 3 - 0
src/streamConsumer.cpp

@@ -131,7 +131,10 @@ JSonElement *StreamConsumer::consumeToken(JSonContainer *parent, std::string &bu
             else
             else
             {
             {
                 if (c == '\\' || c == '"')
                 if (c == '\\' || c == '"')
+                {
                     buf += c;
                     buf += c;
+                    escaped = false;
+                }
                 else
                 else
                     throw JsonEscapedException(c, stream.tellg());
                     throw JsonEscapedException(c, stream.tellg());
             }
             }