if I have a JSON object say:
var myObj = {'data' : {'key1' : 'value', 'key2': 'value'}}
can I remove {'data':} so it becomes:
{'key1' : 'value','key2': 'value'}
if I have a JSON object say:
var myObj = {'data' : {'key1' : 'value', 'key2': 'value'}}
can I remove {'data':} so it becomes:
{'key1' : 'value','key2': 'value'}
Just do this:
myObj = myObj.data;
You will then have a myObj that is just this:
{'key1' : 'value', 'key2': 'value'}