SAX implementation to create a JSON value from SAX events. Más...
#include <json.hpp>
Métodos públicos | |
| json_sax_dom_parser (BasicJsonType &r, const bool allow_exceptions_=true, lexer_t *lexer_=nullptr) | |
SAX implementation to create a JSON value from SAX events.
This class implements the json_sax interface and processes the SAX events to create a JSON value which makes it basically a DOM parser. The structure or hierarchy of the JSON value is managed by the stack ref_stack which contains a pointer to the respective array or object for each recursion depth.
After successful parsing, the value that is passed by reference to the constructor contains the parsed value.
| BasicJsonType | the JSON type |
|
inlineexplicit |
| [in,out] | r | reference to a JSON value that is manipulated while parsing |
| [in] | allow_exceptions_ | whether parse errors yield exceptions |