]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce a simple API for handling JSON data
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 3 Nov 2009 18:59:18 +0000 (13:59 -0500)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2009 14:14:36 +0000 (14:14 +0000)
commit9428f2ced616a2fa39d152f52f91b858368d9c3a
tree344a63085e49e9d8b420627657ac11f24acc77e0
parent563dc5654c52b346d121b9f9d94fb6939ffb1b60
Introduce a simple API for handling JSON data

This introduces simple API for handling JSON data. There is
an internal data structure 'virJSONValuePtr' which stores a
arbitrary nested JSON value (number, string, array, object,
nul, etc).  There are APIs for constructing/querying objects
and APIs for parsing/formatting string formatted JSON data.

This uses the YAJL library for parsing/formatting from

 http://lloyd.github.com/yajl/

* src/util/json.h, src/util/json.c: Data structures and APIs
  for representing JSON data, and parsing/formatting it
* configure.in: Add check for yajl library
* libvirt.spec.in: Add build requires for yajl
* src/Makefile.am: Add json.c/h
* src/libvirt_private.syms: Export JSON symbols to drivers
configure.in
libvirt.spec.in
po/POTFILES.in
src/Makefile.am
src/libvirt_private.syms
src/util/json.c [new file with mode: 0644]
src/util/json.h [new file with mode: 0644]