How to access key itself using javascript
Posted
by Wondering
on Stack Overflow
See other posts from Stack Overflow
or by Wondering
Published on 2010-05-31T10:31:22Z
Indexed on
2010/05/31
10:32 UTC
Read the original article
Hit count: 174
JavaScript
|JSON
Hi All, I have a json like:
var xx= {'name':'alx','age':12};
now i can read the value of name which is 'alx' as xx[0].name, but how to retrieve value of 'name' itself, means how i can fetch Key @ run time. Please let me know if my question is not clear and you guys want more info. Thanks.
© Stack Overflow or respective owner