Possible Duplicate:
Parsing JSON with JavaScript
I understand to get the value of a json data, for instance var json = [{"country":"US"}], I can do it like json[0].country.
I’ve this json data [{"0":"US"}], so how do I retrieve the data then?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use
json[0]['0']as the “0” is just a name as far as JavaScript is concerned