Replies: 1 comment
-
"I want to append data to the stream as it arrives from the network" Can you clarify what you mean by this? Preferably with an example? Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Daniel,
I have an array of JSON objects and would like to retrieve them one by one as they are fully parsed.
Let’s look at this example:
https://github.com/danielaparker/jsoncons/blob/master/doc/Examples.md#I3
This code almost achieves what I need, but there is an issue.
I want to append data to the stream as it arrives from the network, but I cannot find a way to notify the library to resume parsing from where it stopped.
I have seen the incremental parsing example in the documentation:
https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-until-100-since-110
However, this approach does not allow me to retrieve objects individually.
Is there a way to combine these two methods?
Thank you for your time and contributions to the open-source community!
Best regards,
Alexey Komarov
Beta Was this translation helpful? Give feedback.
All reactions