mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-26 21:04:24 +08:00
README: Explain including cJSON, fix #211
This commit is contained in:
parent
8a11f8ce17
commit
35907223e1
@ -114,6 +114,13 @@ make all
|
||||
|
||||
If you want, you can install the compiled library to your system using `make install`. By default it will install the headers in `/usr/local/include/cjson` and the libraries in `/usr/local/lib`. But you can change this behavior by setting the `PREFIX` and `DESTDIR` variables: `make PREFIX=/usr DESTDIR=temp install`.
|
||||
|
||||
### Including cJSON
|
||||
If you installed it via the CMake or the Makefile, you can include cJSON like this:
|
||||
|
||||
```c
|
||||
#include <cjson/cJSON.h>
|
||||
```
|
||||
|
||||
### Some JSON:
|
||||
|
||||
```json
|
||||
|
Loading…
x
Reference in New Issue
Block a user