How to append one json object into another json object in reactjs?
My json format from the console is below
Json 1 :
{
"results": {
"Action": "Success!"
},
"report": {
"Strategy": "Yes",
"Plan": "No"
}
}
Json 2 :
{
"results": {
"Actions": "Failure!"
},
"report": {
"Idea": "Yep",
"Storm": "Nope"
}
}
Appended JSON(Desired output format) :
{
"results": {
"Action": "Success!",
"Actions": "Failure!"
},
"report": {
"Strategy": "Yes",
"Plan": "No",
"Idea": "Yep",
"Storm": "Nope"
}
}