mirror of
https://github.com/json-c/json-c.git
synced 2026-03-14 02:29:07 +08:00
3fcffe1bb01de6978f4516abd49a3b3c9e2cd2f2
There are now three options: JSON_C_TO_STRING_SPACED, JSON_C_TO_STRING_PLAIN and JSON_C_TO_STRING_PRETTY. This also add a json_object_to_file_ext() that takes the same flags. Existing output of json_object_to_json_string() is unchanged, and uses JSON_C_TO_STRING_SPACED. Thanks fo Grant Edwards for the initial patches.
Building on Unix with git, gcc and autotools
Home page for json-c:
http://oss.metaparadigm.com/json-c/
Github repo for json-c:
https://github.com/json-c/json-c
$ git clone https://github.com/json-c/json-c.git
$ cd json-c
$ sh autogen.sh
Then
$ ./configure
$ make
$ make install
To build and run the test programs run
$ make check
Linking to libjson
If your system has pkgconfig then you can just add this to your makefile
CFLAGS += $(shell pkg-config --cflags json)
LDFLAGS += $(shell pkg-config --libs json)
Description
https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/
Readme
5.7 MiB
Languages
C
86.8%
CMake
6.1%
Shell
3.4%
Meson
2.5%
C++
0.9%
Other
0.3%