mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 23:10:08 +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.
24 lines
350 B
JSON
24 lines
350 B
JSON
{
|
|
"file": {
|
|
"double": {
|
|
"nest1": "some",
|
|
"nest2": "more",
|
|
"nest3": {
|
|
"even": "objects"
|
|
}
|
|
},
|
|
"very": {
|
|
"deeply": {
|
|
"nested": {
|
|
"object": {
|
|
"chains": {
|
|
"nest1": "some",
|
|
"nest2": "stuff"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|