[libvirt] [PATCH 0/3] JSON parsing simplification

Eric Blake eblake at redhat.com
Sat Jun 20 19:42:07 UTC 2015


Add and use a new virJSONValueObjectGetObject() and friends,
exposing and fixing a bug in our JSON parser along the way.

Eric Blake (3):
  json: fully parse input string
  json: make it easier to type-check when getting from object
  qemu: simplify json parsing

 src/libvirt_private.syms     |   3 +
 src/qemu/qemu_monitor_json.c | 164 ++++++++++++++++---------------------------
 src/util/virjson.c           |  80 +++++++++++----------
 src/util/virjson.h           |   8 ++-
 tests/jsontest.c             | 129 ++++++++++++++++++++++++++++++++++
 5 files changed, 242 insertions(+), 142 deletions(-)

-- 
2.4.3




More information about the libvir-list mailing list