1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00
libvirt/tests/virjsondata/deflatten-basic-generic-out.json
Peter Krempa d40f4b3e67 util: json: Properly implement JSON deflattening
As it turns out sometimes users pass in an arbitrarily nested structure
e.g. for the qemu backing chains JSON pseudo protocol. This new
implementation deflattens now a single object fully even with nested
keys.

Additionally it's not necessary now to stick with the "file." prefix for
the properties.
2017-07-11 14:13:35 +02:00

21 lines
256 B
JSON

{
"foo": {
"int": 1,
"string": "string",
"object": {
"data": "value",
"foo": "bar"
}
},
"bar": {
"int": 1
},
"blurb": {
"string": "string",
"object": {
"data": "value",
"foo": "bar"
}
}
}