I am trying to grab some data via JSONP. Using Firebug, I am able to see the data properly being returned, but I am having a hard time thinking how I have to parse it. The d
You don't have to parse the data. It is already a valid JavaScript object. For instance, to print the description property for the first object inside someFunction
function someFunction(result) {
alert(result[0].description); // alerts "Sample Description"
}
Write a function with the correct name and the correct arguments. The JS engine will do the parsing for you.
function someFunction(data) {
// Now data is an Array, containing a single
// Object with 8 properties (title, link, etc)
}