]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: json: Recursively deflatten objects virJSONValueObjectDeflatten
authorPeter Krempa <pkrempa@redhat.com>
Mon, 26 Jun 2017 17:37:18 +0000 (19:37 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 11 Jul 2017 12:20:05 +0000 (14:20 +0200)
commit428d175206ebe12be39fcac730ecf509fb806154
treecf2f9f21cd0ffdfeda798dc9a89034c8b7b18c47
parentd40f4b3e673cda123644c32bc815e7e2f1fc8fcd
util: json: Recursively deflatten objects virJSONValueObjectDeflatten

If a value of the first level object contains more objects needing
deflattening which would be wrapped in an actual object the function
would not recurse into them.

By this simple addition we can fully deflatten the objects.
src/util/virjson.c
tests/virjsondata/deflatten-nested-out.json