File yajl.cxref

Yet Another JSON Library (YAJL)


Lloyd Hilaiel
2007-2014
This version is maintained by Greg A. Woods

Yet Another JSON Library (YAJL) is a small event-driven (SAX-style) JSON parser, and a small validating JSON generator, all written entirely in pure portable ANSI C
YAJL is released under the permissive ISC license.



All Files, Functions, and Types



Features


- Stream (incremental) parsing and generation of JSON
- Plain ANSI C
- Human readable error messages, complete with context
- tiny
- event driven
- support for generating "beautified" JSON
- includes a simplified tree parser and access API
- can use a custom memory allocator


It also includes a small tree-based API for simplified parsing and extraction of data from smallish JSON documents.

Usage


See the following examples which demonstrate both stream based parsing and generation of JSON; as well as an example of the simplified tree interface.

reformatter/json_reformat.c

example/parse_config.c