1# <small>nlohmann::</small>ordered_json 2 3```cpp 4using ordered_json = basic_json<ordered_map>; 5``` 6 7This type preserves the insertion order of object keys. 8 9## Examples 10 11??? example 12 13 The example below demonstrates how `ordered_json` preserves the insertion order of object keys. 14 15 ```cpp 16 --8<-- "examples/ordered_json.cpp" 17 ``` 18 19 Output: 20 21 ```json 22 --8<-- "examples/ordered_json.output" 23 ``` 24 25## See also 26 27- [ordered_map](ordered_map.md) 28- [Object Order](../features/object_order.md) 29 30## Version history 31 32Since version 3.9.0. 33