Browse Source

Fix escape-string issue

isundil 9 năm trước cách đây
mục cha
commit
89690b6185
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/streamConsumer.cpp

+ 3 - 0
src/streamConsumer.cpp

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