\mainpage
-`json-c`
+json-c
========
1. [Overview and Build Status](#overview)
7. [Linking to libjson-c](#linking)
8. [Using json-c](#using)
-JSON-C - A JSON implementation in C <a name="overview"></a>
+<a name="overview"></a>
+JSON-C - A JSON implementation in C
-----------------------------------
JSON-C implements a reference counting object model that allows you to easily
Home page for json-c: https://github.com/json-c/json-c/wiki
-Getting Help <a name="gettinghelp"></a>
+<a name="gettinghelp"></a>
+Getting Help
------------
If you have questions about using json-c, please start a thread on
on the [forums](https://groups.google.com/forum/#!forum/json-c).
-Building on Unix with `git`, `gcc` and `cmake` <a name="buildunix"></a>
+<a name="buildunix"></a>
+Building on Unix with `git`, `gcc` and `cmake`
--------------------------------------------------
If you already have json-c installed, see [Linking to `libjson-c`](#linking)
Test Status
* [Coveralls](https://coveralls.io/github/json-c/json-c?branch=master) [](https://coveralls.io/github/json-c/json-c?branch=master)
-### Prerequisites: <a name="installprereq"></a>
+<a name="installprereq"></a>
+### Prerequisites:
- `gcc`, `clang`, or another C compiler
sudo apt install valgrind # optional
```
-### Build instructions: <a name="buildcmds"></a>
+<a name="buildcmds"></a>
+### Build instructions:
`json-c` GitHub repo: https://github.com/json-c/json-c
```
-CMake Options <a name="CMake"></a>
+<a name="CMake"></a>
+CMake Options
--------------------
The json-c library is built with [CMake](https://cmake.org/cmake-tutorial/),
| disable-werror | Avoid treating compiler warnings as fatal errors |
-Testing: <a name="testing"></a>
+<a name="testing"></a>
+Testing:
----------
By default, if valgrind is available running tests uses it.
and check the log files again.
-Building on Unix and Windows with `vcpkg` <a name="buildvcpkg"></a>
+<a name="buildvcpkg"></a>
+Building on Unix and Windows with `vcpkg`
--------------------------------------------------
You can download and install JSON-C using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
The JSON-C port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
-Building for Android <a name="android">
+<a name="android">
+Building for Android
----------------------
Building on Android is now particularly well supported, but there
make install
```
-Linking to `libjson-c` <a name="linking">
+<a name="linking">
+Linking to `libjson-c`
----------------------
If your system has `pkgconfig`,
cmake -DCMAKE_PREFIX_PATH=/path/to/json_c/install/lib64/cmake ..
```
-Using json-c <a name="using">
+<a name="using">
+Using json-c
------------
To use json-c you can either include json.h, or preferably, one of the