mirror of
https://github.com/nlohmann/json.git
synced 2026-08-31 13:37:14 +00:00
created a header-only version (see issue #16)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user