Loading ...
Sorry, an error occurred while loading the content.

jsonsl: ANSI C embeddable high performance streaming JSON decoder

Expand Messages
  • M. Nunberg
    jsonsl aims for speed and simplicity in distribution and usage. Consisting of one source file (jsonsl.c) and one header file (jsonsl.h), there are no complex
    Message 1 of 1 , Apr 30, 2012
    • 0 Attachment
      jsonsl aims for speed and simplicity in distribution and usage.

      Consisting of one source file (jsonsl.c) and one header file (jsonsl.h),
      there are no complex build systems to use and no need chasing around the
      source tree to make modifications. Just drop in and link (of course, it
      can also be built and used as a shared library, if one prefers)

      jsonsl uses a stack/state model, with the states themselves being
      'subclassable' so as to efficiently carry extra user information related
      to each frame.

      Features:

      * Extensible and embeddable

      * High performance (about as fast as YAJL)

      * Flexible callback interface

      * Streaming - does not buffer data and does not allocate memory beyond
      initial structures

      * JSONPointer extended search syntax. Find matching elements using
      glob-like semantics

      * Detailed error reporting

      * ANSI C (I've gotten it to work on several unices and mingw32, but it
      can probably work on MSVC too)

      * Utility function to unescape strings

      * Large set of JSON examples (used as part of jsonsl's test suite)


      --- Goodies:

      * Simple glib-based program converting JSON to XML (380 lines including
      option parsing)

      * Perl Module

      jsonsl:

      https://github.com/mnunberg/jsonsl

      perl-JSON-SL

      https://github.com/mnunberg/perl-JSON-SL
    Your message has been successfully submitted and would be delivered to recipients shortly.