Unverified Commit c3d7fcb7 authored by justanotheranonymoususer's avatar justanotheranonymoususer Committed by GitHub

Update README.md

parent 9710108d
...@@ -88,7 +88,7 @@ Thanks everyone! ...@@ -88,7 +88,7 @@ Thanks everyone!
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
// for convenience // 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). 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); ...@@ -870,7 +870,7 @@ assert(p == p2);
To make this work with one of your types, you only need to provide two functions: To make this work with one of your types, you only need to provide two functions:
```cpp ```cpp
using nlohmann::json; using json = nlohmann::json;
namespace ns { namespace ns {
void to_json(json& j, const person& p) { void to_json(json& j, const person& p) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment