Retrieving data from a JSON sub array in javascript, where identifier starts with an integer

Posted by Archie Ec on Stack Overflow See other posts from Stack Overflow or by Archie Ec
Published on 2010-04-25T22:37:43Z Indexed on 2010/04/25 22:43 UTC
Read the original article Hit count: 222

Filed under:
|
|
|
|

I must be missing something simple here, but I'm having trouble retrieving data from a JSON array response. I can access objects with identifiers that start with letters, but not ones that start with numbers.

For example, I can access

data.item[0].specs.overview.details

But I can't access

data.item[0].specs.9a99.details

If anyone can point me in the right direction, I'd really appreciate it. Thanks.

© Stack Overflow or respective owner

Related posts about JSON

Related posts about arrays