Hi all I have to assign one object values into another, the challenge here that I am facing is my base object i.e the object which I have created have 20 key values, and other object which I am getting in API response, varies response on that object can have 2 key values or maybe all 20.
How can I add the response object values into my existing object.
Objective - I am doing this to autofill some form values.
Example -
Object1={
"first":"one",
"second":"two",
"third":"three",
"fourth":"four",
"fifth":"five",
"sixth":"six"
}
newObject={
"second":"twoUpdated",
"third":"threeUpdated",
"sixth":"sixUpdated"
}
I am getting response like this how can I add newObject to Object1