Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
justanotheranonymoususer authored Jun 18, 2021
1 parent 9710108 commit c3d7fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c3d7fcb

Please sign in to comment.