if I have a JSON object say:
var myObj = {'test' : {'key1' : 'value', 'key2': 'value'}}
can I remove 'key1' so it becomes:
{'test' : {'key2': 'value'}}
if I have a JSON object say:
var myObj = {'test' : {'key1' : 'value', 'key2': 'value'}}
can I remove 'key1' so it becomes:
{'test' : {'key2': 'value'}}
Hi, for me, nothing i try works :-(
I have this json: jsonStrData.users='[{"id":7,"text":"Peter"},{"id":5,"text":"Sylvia"},{"id":6,"text":"Valeria"}]';
and need to remove one object, based on its id value (for instance: 5), so the new json will be: jsonStrData.users='[{"id":7,"text":"Peter"},{"id":6,"text":"Valeria"}]';
Please, help me - wow must I do ?