• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

CI/H25-Jan-2021-6047

autoconf-archive/H03-May-2022-

m4/H25-Jan-2021-355313

tests/H07-May-2022-2,6181,984

.gitignoreH A D25-Jan-20211 KiB7473

.travis.ymlH A D25-Jan-2021948 4435

AUTHORSH A D25-Jan-2021259 96

CONTRIBUTING.mdH A D25-Jan-20211 KiB3023

COPYINGH A D25-Jan-20213.3 KiB6550

ChangeLogH A D25-Jan-202116.7 KiB359324

DIFFERENCESH A D25-Jan-20212.1 KiB5143

DoxyfileH A D25-Jan-202146.2 KiB1,154815

Makefile.amH A D03-May-20221 KiB5038

README.mdH A D25-Jan-20211.8 KiB7754

arraylist.cH A D25-Jan-20213.3 KiB152120

arraylist.hH A D25-Jan-20211.2 KiB6337

atomic.hH A D25-Jan-20217.6 KiB228157

autogen.shH A D25-Jan-2021276 149

configure.acH A D25-Jan-20214.9 KiB167135

debug.cH A D25-Jan-20211.4 KiB8461

debug.hH A D25-Jan-20211.7 KiB7244

json.hH A D25-Jan-20212.6 KiB8423

json_object.cH A D25-Jan-202126.5 KiB1,046822

json_object.hH A D25-Jan-202128.1 KiB762178

json_object_iterator.cH A D25-Jan-20215.4 KiB209106

json_object_iterator.hH A D25-Jan-20218.8 KiB25845

json_object_private.hH A D25-Jan-20212 KiB9864

json_print.cH A D25-Jan-202117.3 KiB587313

json_tokener.cH A D25-Jan-202128.2 KiB959786

json_tokener.hH A D25-Jan-20217.3 KiB22299

json_util.cH A D25-Jan-20216.9 KiB291209

json_util.hH A D25-Jan-20211.3 KiB5327

json_version.cH A D25-Jan-2021360 166

libfastjson-uninstalled.pc.inH A D25-Jan-2021218 1210

libfastjson.pc.inH A D25-Jan-2021262 1311

printbuf.cH A D25-Jan-20215.6 KiB240169

printbuf.hH A D25-Jan-20212.5 KiB8538

README.md

1libfastjson
2===========
3**NOTE: libfastjson is a fork from json-c, and is currently under development.**
4
5The aim of this project is **not** to provide a slightly modified clone
6of json-c. It's aim is to provide
7
8* a **small** library with essential json handling functions
9* sufficiently good json support (not 100% standards compliant)
10* be very fast in processing
11
12In order to reach these goals, we reduce the features of json-c. For
13similarities and differences, see the file DIFFERENCES.
14
15**IMPORTANT**
16The current API is **not** stable and will change until version 1.0.0 is
17reached. We plan to reach it by summer 2016 at latest. With 1.0.0, the API
18will be stable. Until then, everything may change. Of course, we will not
19deliberatly break things but we need freedom to restructure.
20
21
22Building on Unix with `git`, `gcc` and `autotools`
23--------------------------------------------------
24
25Prerequisites:
26
27 - `gcc`, `clang`, or another C compiler
28 - `libtool`
29
30If you're not using a release tarball, you'll also need:
31
32 - `autoconf` (`autoreconf`)
33 - `automake`
34
35Make sure you have a complete `libtool` install, including `libtoolize`.
36
37`libfastjson` GitHub repo: https://github.com/rsyslog/libfastjson
38
39```bash
40$ git clone https://github.com/rsyslog/libfastjson.git
41$ cd libfastjson
42$ sh autogen.sh
43```
44
45followed by
46
47```bash
48$ ./configure
49$ make
50$ make install
51```
52
53To build and run the test programs:
54
55```bash
56$ make check
57```
58
59Linking to `libfastjson`
60---------------------------
61
62If your system has `pkgconfig`,
63then you can just add this to your `makefile`:
64
65```make
66CFLAGS += $(shell pkg-config --cflags libfastjson)
67LDFLAGS += $(shell pkg-config --libs libfastjson)
68```
69
70Without `pkgconfig`, you would do something like this:
71
72```make
73LIBFASTJSON_DIR=/path/to/json_c/install
74CFLAGS += -I$(LIBFASTJSON_DIR)/include/libfastjson
75LDFLAGS+= -L$(LIBFASTJSON_DIR)/lib -lfastjson
76```
77