YAJL, Yet Another JSON Library in ANSI C
22 October 2007Lloyd Hilaiel has released a new JSON C Library that is intended to be a fast, lightweight, portable JSON parsing/generation/validation library. It’s design goals were to provide fast stream based event driven parsing that is representation agnostic.
The concrete problem that motivated it’s creation was using JSON in network protocols, and in performance critical situations it’s suboptimal to A) wait for all the data to arrive before parsing, and B) map everything into the data representation that the parsing library provides, then re-map it into the representation of the application that embeds the library.
It also comes with a command line json validator and json pretty printer/minimizer.
Finally, it’s possible to write small libraries on top of yajl which provide a convenient data representation.
One Response to “YAJL, Yet Another JSON Library in ANSI C”
January 14th, 2008 at 9:15 pm
0.3.0 is now available. online documentation and a couple bugfixes.