There is a specific object called SampleObject
which has the following structure:
{
ID: "",
Name: "",
URL: "",
prevName: "",
Code: "",
}
I am looking to insert the values from the JSON object below (values only):
var object =
{
"Sample" : {
"Data" : {
"ID" : "12345",
"Name" : "SampleName: Name",
"URL" : "www.google.com",
"prevName" : "phones",
"Code" : "USD"
}
}
into the predefined object mentioned above. How can this be achieved?