generate SAX events
Synopsis
Declared in <nlohmann/json.hpp>
template<typename SAX>
[[deprecated]]
static
bool
sax_parse(
/* implementation-defined */::span_input_adapter&& i,
SAX* sax,
input_format_t format = input_format_t::json,
bool const strict = true,
bool const ignore_comments = false,
bool const ignore_trailing_commas = false);
|
Warning
|
Deprecated: Since 3.8.0; use sax_parse(ptr, ptr + len, ...). Use of this entity is allowed but discouraged. |
Return Value
whether the generation of SAX events completed successfully
Parameters
Name |
Description |
i |
input to read the JSON value from |
sax |
SAX event consumer |
format |
the format to parse the input as |
strict |
whether to expect the input to be consumed until EOF |
ignore_comments |
whether comments should be ignored and treated like whitespace ( |
ignore_trailing_commas |
whether trailing commas in arrays and objects should be ignored ( |
Created with MrDocs