|
virtual bool | null ()=0 |
| a null value was read
|
|
virtual bool | boolean (bool val)=0 |
| a boolean value was read
|
|
virtual bool | number_integer (number_integer_t val)=0 |
| an integer number was read
|
|
virtual bool | number_unsigned (number_unsigned_t val)=0 |
| an unsigned integer number was read
|
|
virtual bool | number_float (number_float_t val, const string_t &s)=0 |
| a floating-point number was read
|
|
virtual bool | string (string_t &val)=0 |
| a string value was read
|
|
virtual bool | binary (binary_t &val)=0 |
| a binary value was read
|
|
virtual bool | start_object (std::size_t elements)=0 |
| the beginning of an object was read
|
|
virtual bool | key (string_t &val)=0 |
| an object key was read
|
|
virtual bool | end_object ()=0 |
| the end of an object was read
|
|
virtual bool | start_array (std::size_t elements)=0 |
| the beginning of an array was read
|
|
virtual bool | end_array ()=0 |
| the end of an array was read
|
|
virtual bool | parse_error (std::size_t position, const std::string &last_token, const detail::exception &ex)=0 |
| a parse error occurred
|
|
| json_sax (const json_sax &)=default |
|
| json_sax (json_sax &&) noexcept=default |
|
json_sax & | operator= (const json_sax &)=default |
|
json_sax & | operator= (json_sax &&) noexcept=default |
|
template<typename BasicJsonType>
struct json_sax< BasicJsonType >
SAX interface.
This class describes the SAX interface used by nlohmann::json::sax_parse. Each function is called in different situations while the input is parsed. The boolean return value informs the parser whether to continue processing the input.