Skip to content

AndyA/jsondata

Repository files navigation

JSON and JSONPath in C

libjsondata provides data structures with JSON semantics (dictionaries and arrays), JSON serialisation and efficient support for JSONPath:

http://goessner.net/articles/JsonPath/

Build

$ ./setup.sh && ./configure && make test

Install

$ sudo make install
$ sudo ldconfig

Getting started

/* hello.c */

#include <jd_pretty.h>

int main(void) {
  scope {
    jd_var *hello_world = jd_njv("{\"hello\":\"world\"}");
    jd_printf("The message is %lJ\n", hello_world);
  }
  return 0;
}
$ gcc -std=c99 -o hello -ljsondata hello.c 
$ ./hello 
The message is {
  "hello": "world"
}

Andy Armstrong, andy@hexten.net

About

JSON data structures, parsing, generation in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages