I get a .json file with such a structure. My question is, how can I effectively read out all the properties and also change them if necessary? I have tried it with objects, but I don't know exactly how I can implement this due to the many nestings.
{
"background": {
"active": true,
"layer": {
"img1": {
"color": "green",
"active": true
},
"img2": {
"color": "blue",
"active": true
}
}
},
"front": {
"active": true,
"layer": {
"img1": {
"color": "green",
"active": true
},
"img2": {
"color": "blue",
"active": true
},
"imgX": {
"color": "blue",
"active": true
}
}
}
}