1# <small>nlohmann::json_sax::</small>key 2 3```cpp 4virtual bool key(string_t& val) = 0; 5``` 6 7An object key was read. 8 9## Parameters 10 11`val` (in) 12: object key 13 14## Return value 15 16Whether parsing should proceed. 17 18## Notes 19 20It is safe to move the passed object key value. 21 22## Examples 23 24??? example 25 26 The example below shows how the SAX interface is used. 27 28 ```cpp 29 --8<-- "examples/sax_parse.cpp" 30 ``` 31 32 Output: 33 34 ```json 35 --8<-- "examples/sax_parse.output" 36 ``` 37 38## Version history 39 40- Added in version 3.2.0. 41