I have an object, and within the object, i need to delete the address from the array of objects using javascript.
obj = {
"name":1,
"Details":[
{
"mname":"text here",
"sname":"text here",
"address":"text",
"saddress":"text"
}
]
}
I have tried the following, but no luck:
delete obj.Details.address
and
delete obj.Details[0].address