I'm having a bit of trouble accessing some parts of JSON. Following is the JSON I am trying to parse.
{
"id": "36329",
"name": "drupal",
"images": [
{
"id": "432286184",
"short_id": "75de5k",
"message": "At the D7 upgrade sprint in SF, like being in the land of giants. #brainpower #Drupal",
},
{
"id": "432052255",
"short_id": "758dnj",
"message": "At Facebook office - next up, finding Mark and explaining the #drupal heartbeat module :)",
},
]
}
I have a content type to use for feed items, I added fields "id", "short_id" and "message"
In the JSONPath Parser Settings, if I use $.images.* for the context, then I am able to map the various pieces by using id, short_id and message in the appropriate fields. The part I can't seem to figure out how to access is the "name". In the JSON where the name is "drupal", that is what I am trying to get.
I've tried every combination of @, $..*, $., ., etc. for the context but if I change it to anything other than $.images.*, then I am no longer able to get the values of id, short_id or message.
I edited the above to make it easier to read, but you can see the full JSON results by going to http://jsonviewer.stack.hu/#http://api.twitpic.com/2/tags/show.json?tag=....
Any ideas on how I can get to that "name" part?
Thanks,
Tim
Comments
Comment #1
twistor commentedTwitpic is dead, so I guess this isn't an issue anymore.