Rapidjson: Parsing Multiple root element present in JSON

Created on 30 Nov 2017  路  2Comments  路  Source: Tencent/rapidjson

Hi Everyone,

Is there any way to parse multiple root elements present in single json file. I am stuck here .

Most helpful comment

http://rapidjson.org/md_doc_dom.html#Parsing

kParseStopWhenDoneFlag: After parsing a complete JSON root from stream, stop further processing the rest of stream. When this flag is used, parser will not generate聽kParseErrorDocumentRootNotSingular聽error. Using this flag for parsing multiple JSONs in the same stream.

All 2 comments

http://rapidjson.org/md_doc_dom.html#Parsing

kParseStopWhenDoneFlag: After parsing a complete JSON root from stream, stop further processing the rest of stream. When this flag is used, parser will not generate聽kParseErrorDocumentRootNotSingular聽error. Using this flag for parsing multiple JSONs in the same stream.

Thank you !! It worked

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jimmyorourke picture jimmyorourke  路  3Comments

OlafvdSpek picture OlafvdSpek  路  6Comments

lixiaofan0 picture lixiaofan0  路  3Comments

lelit picture lelit  路  5Comments

coderwenhao picture coderwenhao  路  3Comments