Yet Another JSON Library (YAJL)

From Free Software Directory
Jump to: navigation, search


Yet Another JSON Library (YAJL)
a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator.

Why does the world need another C library for parsing JSON? Good question. In a review of current C JSON parsing libraries I was unable to find one that satisfies my requirements. Those are:

  • 0. written in C
  • 1. portable
  • 2. robust -- as close to "crash proof" as possible
  • 3. data representation independent
  • 4. fast
  • 5. generates verbose, useful error messages including context of where the error occurs in the input text.
  • 6. can parse JSON data off a stream, incrementally
  • 7. simple to use
  • 8. tiny
  • Numbers 3, 5, 6, and 7 where particularly hard to find, and were what caused me to ultimately create YAJL.


see README file and

"IRC general" IRC general channel


version 1.0.9 (stable)
released on 8 January 2010

User level



Related Projects



Verified by

Verified on


Verified by

Kelly Hopkins

Verified on

30 June 2010

Leaders and contributors

Lloyd Hilaiel Maintainer

Resources and communication

AudienceResource typeURI
GeneralMailing List

Software prerequisites

This entry (in part or in whole) was last reviewed on 30 June 2010.


"c" is not in the list (C, C++, java, lisp, php, pascal, perl, python, ruby, scheme, ...) of allowed values for the "Programming-language" property.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.