Parser for text in JsonValue. Allows you to parse JSON in chunks of text. For example, data comes in packets from the network, feed them to processChunk until we get the result.
More...
#include <json.h>
|
| JsonParseResult | parseAll (ssType text) |
| | Parse all the text in one go.
|
| |
| JsonParseResult | processChunk (ssType chunk, bool last) |
| | Parse a piece of text.
|
| |
template<typename K>
struct simjson::StreamedJsonParser< K >
Parser for text in JsonValue. Allows you to parse JSON in chunks of text. For example, data comes in packets from the network, feed them to processChunk until we get the result.
- Template Parameters
-
◆ parseAll()
Parse all the text in one go.
- Parameters
-
- Returns
- JsonParseResult.
◆ processChunk()
Parse a piece of text.
- Parameters
-
| chunk | - a portion of text. |
| last | - a sign that this is the last portion of text. Depending on this, it can return Success or NoNeedMore. |
- Returns
- JsonParseResult.
The documentation for this struct was generated from the following files: