How to manipulate JSON ResponseText in EXTJS
[{"brand":null,"remark":null,"type":null,"id":120,"shop":null,"price":null,"model":null}]
The code I written to get the id value 120 is below:
conn.request({
url: 'json.htm',
method: 'POST',
success: function(response) {
var jsonData = Ext.util.JSON.decode(response.responseText);
alert(jsonData.id);
}
}); ....
After testing the code in browser, I failed to get the expected result, anyone can help?
data[0].id;
Here is a very good site about json, http://json.org/. Read on.
{"data": [{...}]}.
This was initialliy written for a JsonStore but now I also need it for a plain AJAX request.
I think it is more a syntax issue... I can't seem to figure out how to access the properties of "data".
Hello,
Can you show a small example?
#If you have any other info about this subject , Please add it free.# |





