mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 35907223e11010e89dee11d48c7fdeecd491bc8f
parent 8a11f8ce173d93fc8c0748a87dd5b8817a74f85c
Author: Max Bruckner <max@maxbruckner.de>
Date:   Sat,  4 Nov 2017 13:39:58 +0100

README: Explain including cJSON, fix #211

MREADME.md | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -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