mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
d40f4b3e67
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.
21 lines
256 B
JSON
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"
|
|
}
|
|
}
|
|
}
|