• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# basic_json::parse_event_t
2
3```cpp
4enum 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
14The 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## Example
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.
30