-
Hello, Does the nlohmann-json library support incremental parsing of streams? Since I read the following inside the appreciation list, it should be possible, or?
Is there any example out there, that shows it's usage? |
Beta Was this translation helpful? Give feedback.
Answered by
nlohmann
Sep 25, 2020
Replies: 2 comments 1 reply
-
I'm stuck asking a similar question it would seem.. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can parse from a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RobertHue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can parse from a
std::istream
viaoperator>>
. It parses until a complete JSON value is read you can call it again to parse the next value. So when your input istrue false
, then you can parse two values.