Another Programmer's Blog
Monday, 10 September 2012
How to select a JSON object with a colon in the key
item = Object
category
:
Array[6]
comments
:
Array[1]
content:encoded
:
Array[1]
dc:creator
:
Array[1]
0
:
"Jordan Crook"
length
:
1
To access 'dc:creator' simply use:
item['dc:creator'][0];
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment