mirror of
https://github.com/nlohmann/json.git
synced 2026-10-03 13:10:33 +00:00
655 B
655 B
nlohmann::json
using json = basic_json<>;
This type is the default specialization of the basic_json class which uses the standard template types.
Examples
??? example
The example below demonstrates how to use the type `nlohmann::json`.
```cpp
--8<-- "examples/README.cpp"
```
Output:
```json
--8<-- "examples/README.output"
```
See also
- basic_json - the underlying class template
- ordered_json - specialization that preserves the insertion order of object keys
Version history
Since version 1.0.0.