Monday, 10 September 2012

How to select a JSON object with a colon in the key

item = Object
  1. categoryArray[6]
  2. commentsArray[1]
  3. content:encodedArray[1]
  4. dc:creatorArray[1]
    1. 0"Jordan Crook"
    2. length1

To access 'dc:creator' simply use:

item['dc:creator'][0];

No comments:

Post a Comment