I got a JSON converted from XML.
So, how can I get json.@attribute.something.
@ <– this one will make javascript error
I use Javascript.
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.
Making a great exercise of imagination, I suppose you’ve used jQuery to download some JSON through AJAX and you have an object with a key called “@attribute”, such as this:
You just need to use square brackets: