JSON OBJECT DATA
var userdata = {
"parent": {
"name": "rose",
"child1": {
"name" : '"tiny"
}
}
}
var userJsonObjt = JSON.parse(userdata);
delete userJsonObjt["parent"].child1.name;
this will remove the child name from the userdata
var userdata = {
"parent": {
"name": "rose",
"child1": {
"name" : '"tiny"
}
}
}
var userJsonObjt = JSON.parse(userdata);
delete userJsonObjt["parent"].child1.name;
this will remove the child name from the userdata
No comments:
Post a Comment