You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a json just like this: {"version":1.0, "data": {"count": 0, "datalist": []}} . Then I'd like to add some data into the "datalist" array dynamically, but I can't find a real way to do that.
There is a demo I hava writen.
Do you mean that for tempDoc, you need to use an allocator based off m_document? The above doesn't compile. There isn't a constructor for rapidjson::Document that takes *m_document.GetAllocator()
Then again, that's what this person was doing in the first place....using allocator based off m_document with tempDoc.
I have a json just like this: {"version":1.0, "data": {"count": 0, "datalist": []}} . Then I'd like to add some data into the "datalist" array dynamically, but I can't find a real way to do that.
There is a demo I hava writen.
data_json.h:
data_json.cpp:
main.cpp:
What's the error about this demo ?
Thank you !
The text was updated successfully, but these errors were encountered: