Remove a JSON attribute [duplicate]

if I have a JSON object say:

var myObj = {'test' : {'key1' : 'value', 'key2': 'value'}}

can I remove ‘key1’ so it becomes:

{'test' : {'key2': 'value'}}

2 Answers
2

Leave a Comment