]> xenbits.xensource.com Git - libvirt.git/commit
util: add functions for interating over json object
authorDmitry Guryanov <dguryanov@parallels.com>
Wed, 2 May 2012 18:32:37 +0000 (22:32 +0400)
committerEric Blake <eblake@redhat.com>
Thu, 3 May 2012 15:07:25 +0000 (09:07 -0600)
commit287737f413e89cdc0070849865fb42b9f8afcf09
treeb5b7f3ef297778fec650e787207f4aaa9be6ff56
parent0d631e91823529a7ca7631a7f708a4fdbc9ed51e
util: add functions for interating over json object

Add function virJSONValueObjectKeysNumber, virJSONValueObjectGetKey
and virJSONValueObjectGetValue, which allow you to iterate over all
fields of json object: you can get number of fields and then get
name and value, stored in field with that name by index.

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
AUTHORS
src/libvirt_private.syms
src/util/json.c
src/util/json.h