mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
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.
29 lines
570 B
JSON
29 lines
570 B
JSON
{
|
|
"file": {
|
|
"nest": {
|
|
"even": {
|
|
"objects": "can",
|
|
"contain": "some",
|
|
"more": {
|
|
"deeply": {
|
|
"nested": "objects",
|
|
"needing": "deflattening",
|
|
"some": {
|
|
"even": "more",
|
|
"than": {
|
|
"others": {
|
|
"thought": {
|
|
"was": "even",
|
|
"completely": "necessary"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"perhaps": "flat value"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|