How can I update a value at a specific index in the following multi dimensional JSON array?
I would like to update the value of background-image placed inside the footer_logo node.
{
"Machine1": {
"sidebar_inner": {
"img": "img/pill.png",
"background-color": "#ffffff",
"side_logo": {
"background-image": "../footer_logo.png"
}
},
"lb_footer": {
"img": "img/bin.png",
"footer_logo": {
"background-image": "..img/footer_logo.png"
}
},
"machine_stand": {
"img": "img/machine_stand.png"
},
"side": {
"backgroundcolor": "#ccc"
}
}
}
obj[findex][sindex][tindex] = myvalue