var Array = [];
{'DateOfBirth' : '06/11/1978',
'Phone' : '770-786',
'Email' : 'pbishop@hotmail.com' ,
'Ethnicity' : 'Declined' ,
'Race' : 'OtherRace' , }
I need to access the ‘Race’ here.. how can i do it… Its an array which holds this data…
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.
Thats not an array, its an object. You want to do something like:
If the Objects are inside an array
var ArrayValues = [{object}, {object}, ...];then regular array accessors will work:var raceName = ArrayValues[0].Race;Or, if you want to loop over the values:
Good documentation for arrays can be found at the Mozilla Developer Network