created a header-only version (see issue #16)

This commit is contained in:
Niels 2015-01-09 18:16:27 +01:00
parent 2443aa6521
commit 52f399d55f
4 changed files with 2662 additions and 4 deletions

View file

@ -26,7 +26,7 @@ Other aspects were not so important to us:
## Integration
All you need to do is add
The two required source files are in the `src` directory. All you need to do is add
```cpp
#include "json.h"
@ -37,6 +37,8 @@ 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).
If you want a single header file, use the `json.h` file from the `header_only` directory.
## Examples
Here are some examples to give you an idea how to use the class.