if I have a JSON object say:
var myObj = {'test' : {'key1' : 'value', 'key2': 'value'}}
can I remove 'key1' so it becomes:
{'test' : {'key2': 'value'}}
Answer
Simple:
delete myObj.test.key1;
In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...
No comments:
Post a Comment