Hi,
I'm trying JSON for the first time and I have a php file that returns this:
[{"userID":"39160902151","content":"I really can't wait to get this thing done :-)","published":"2011-06-07 10:33:35"}]
.
What do I do if I want to display only the userID from this data using javascript. I load this into javascript like this:
var displayfeeds = new ajaxObject('ajax/users/display.feeds.php');
displayfeeds.callback = function (responseText,status) {
var feed = JSON.parse(JSON.stringify(responseText));
$("#feeds-feedback").html(feed);//I need the userID from feed
}
displayfeeds.update();
Thank you in anticipation :-)