var jsonObj = [
{
"key1": "value1",
"key2": "value2",
"key3": "value3"
},
{
"key1": "value1",
"key2": "value2",
"key3": "value3"
}
];
I want to update all the values of all the objects. Here the keys and values are dynamic not key1 and value1. Could you help to figure it out the requirement.
I want to make each value of each object to "changedvalue". So the final result after updating the jsonObj is
[
{
"key1": "changedvalue",
"key2": "changedvalue",
"key3": "changedvalue"
},
{
"key1": "changedvalue",
"key2": "changedvalue",
"key3": "changedvalue"
}
];