YAJL  2.1.0
Yet Another JSON Library (YAJL)
Lloyd Hilaiel

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


  1. Stream (incremental) parsing and generation of JSON
  2. ANSI C
  3. Human readable error messages with context
  4. tiny
  5. event driven
  6. support for generating "beautified" JSON
  7. includes It also includes a small simplified tree interface for simplified parsing and extraction of data from smallish JSON documents.


See json_reformat.c for a complete example of stream based parsing and generation of JSON. See parse_config.c for an example of the simplified tree interface.