From 8e0629dd083dd89718f53584c5db68932c1b7bf8 Mon Sep 17 00:00:00 2001 From: Eslam Ali Date: Thu, 16 Nov 2017 14:24:28 +0200 Subject: [PATCH] Support parsing json objects recursively using globaly defined parser --- JsonStreamingParser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/JsonStreamingParser.cpp b/JsonStreamingParser.cpp index cfc71d1..c6fbf7c 100644 --- a/JsonStreamingParser.cpp +++ b/JsonStreamingParser.cpp @@ -428,7 +428,11 @@ int JsonStreamingParser::convertDecimalBufferToInt(char myArray[], int length) { void JsonStreamingParser::endDocument() { myListener->endDocument(); - state = STATE_DONE; + state = STATE_START_DOCUMENT; + bufferPos = 0; + unicodeEscapeBufferPos = 0; + unicodeBufferPos = 0; + characterCounter = 0; } void JsonStreamingParser::endTrue() {