mirror of
https://github.com/nlohmann/json.git
synced 2025-05-11 05:33:55 +00:00
* 🔥 consolidate documentation * ♻️ overwork std specializations * 🚚 move images files to mkdocs * ♻️ fix URLs * 🔧 tweak MkDocs configuration * 🔧 add namespaces * 📝 document deprecations * 📝 document documentation generation * 🚸 improve search * 🚸 add examples * 🚧 start adding documentation for macros * 📝 add note for https://github.com/nlohmann/json/issues/874#issuecomment-1001699139 * 📝 overwork example handling * 📝 fix Markdown tables
2.0 KiB
2.0 KiB
nlohmann::json_sax
template<typename BasicJsonType>
struct json_sax;
This class describes the SAX interface used by 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.
Template parameters
BasicJsonType
- a specialization of
basic_json
Member types
- number_integer_t -
BasicJsonType
's type for numbers (integer) - number_unsigned_t -
BasicJsonType
's type for numbers (unsigned) - number_float_t -
BasicJsonType
's type for numbers (floating-point) - string_t -
BasicJsonType
's type for strings - binary_t -
BasicJsonType
's type for binary arrays
Member functions
- binary (virtual) - a binary value was read
- boolean (virtual) - a boolean value was read
- end_array (virtual) - the end of an array was read
- end_object (virtual) - the end of an object was read
- key (virtual) - an object key was read
- null (virtual) - a null value was read
- number_float (virtual) - a floating-point number was read
- number_integer (virtual) - an integer number was read
- number_unsigned (virtual) - an unsigned integer number was read
- parse_error (virtual) - a parse error occurred
- start_array (virtual) - the beginning of an array was read
- start_object (virtual) - the beginning of an object was read
- string (virtual) - a string value was read
Version history
- Added in version 3.2.0.
- Support for binary values (
binary_t
,binary
) added in version 3.8.0.