]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/nlohmann-json/doc/mkdocs/docs/api/basic_json/parse_event_t.md
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / nlohmann-json / doc / mkdocs / docs / api / basic_json / parse_event_t.md
1 # <small>nlohmann::basic_json::</small>parse_event_t
2
3 ```cpp
4 enum class parse_event_t : std::uint8_t {
5 object_start,
6 object_end,
7 array_start,
8 array_end,
9 key,
10 value
11 };
12 ```
13
14 The parser callback distinguishes the following events:
15
16 - `object_start`: the parser read `{` and started to process a JSON object
17 - `key`: the parser read a key of a value in an object
18 - `object_end`: the parser read `}` and finished processing a JSON object
19 - `array_start`: the parser read `[` and started to process a JSON array
20 - `array_end`: the parser read `]` and finished processing a JSON array
21 - `value`: the parser finished reading a JSON value
22
23 ## Examples
24
25 ![Example when certain parse events are triggered](../../images/callback_events.png)
26
27 ## Version history
28
29 - Added in version 1.0.0.