mirror of
https://github.com/nlohmann/json.git
synced 2025-07-27 00:41:05 +03: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
800 B
800 B
nlohmann::basic_json::parse_event_t
enum class parse_event_t : std::uint8_t {
object_start,
object_end,
array_start,
array_end,
key,
value
};
The parser callback distinguishes the following events:
object_start
: the parser read{
and started to process a JSON objectkey
: the parser read a key of a value in an objectobject_end
: the parser read}
and finished processing a JSON objectarray_start
: the parser read[
and started to process a JSON arrayarray_end
: the parser read]
and finished processing a JSON arrayvalue
: the parser finished reading a JSON value
Examples
Version history
- Added in version 1.0.0.