moved class into "nlohmann" namespace
- fixed issue #9 - also removed std::mutex member variable - also added “std::” prefix to size_t variables
This commit is contained in:
parent
4f0afbbe64
commit
a53c878c81
5 changed files with 26 additions and 36 deletions
|
|
@ -30,6 +30,9 @@ All you need to do is add
|
|||
|
||||
```cpp
|
||||
#include "json.h"
|
||||
|
||||
// for convenience
|
||||
using json = nlohmann::json;
|
||||
```
|
||||
|
||||
to the files you want to use JSON objects. Furthermore, you need to compile the file `json.cc` and link it to your binaries. Do not forget to set the necessary switches to enable C++11 (e.g., `-std=c++11` for GCC and Clang).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue