X Tutup
Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 559 Bytes

File metadata and controls

32 lines (20 loc) · 559 Bytes

nlohmann::ordered_json

using ordered_json = basic_json<ordered_map>;

This type preserves the insertion order of object keys.

Examples

??? example

The example below demonstrates how `ordered_json` preserves the insertion order of object keys.

```cpp
--8<-- "examples/ordered_json.cpp"
```

Output:

```json
--8<-- "examples/ordered_json.output"
```

See also

Version history

Since version 3.9.0.

X Tutup