mirror of
https://github.com/nlohmann/json.git
synced 2024-11-27 16:49:02 +08:00
Update README.md
This commit is contained in:
parent
9710108d6a
commit
c3d7fcb76c
@ -88,7 +88,7 @@ Thanks everyone!
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
// for convenience
|
||||
using nlohmann::json;
|
||||
using json = nlohmann::json;
|
||||
```
|
||||
|
||||
to the files you want to process JSON and set the necessary switches to enable C++11 (e.g., `-std=c++11` for GCC and Clang).
|
||||
@ -870,7 +870,7 @@ assert(p == p2);
|
||||
To make this work with one of your types, you only need to provide two functions:
|
||||
|
||||
```cpp
|
||||
using nlohmann::json;
|
||||
using json = nlohmann::json;
|
||||
|
||||
namespace ns {
|
||||
void to_json(json& j, const person& p) {
|
||||
|
Loading…
Reference in New Issue
Block a user