Below is the code generated by json_encode() at the ajax page. Now, I want to retrieve the data (Title, ISBN, Authors…). Can anyone give me a hand? I’ve looked at jQuery.parseJSON function but get confused.
{
"9780077225957": {
"Items_Data": {
"Title": "Developing Management Skills: What Great Managers Know and Do",
"Data_Source": "Amazon",
"Item_ID": "1329",
"ISBN": "9780077225957",
"Authors": "Timothy Baldwin",
"Edition": "1",
"Year": "2007",
"Publisher": "McGraw-Hill/Irwin",
"Amazon_Thumb_URL": "http://ecx.images-amazon.com/images/I/41pVf7GKujL._SL160_.jpg"
}
}
}
Just assigning in a JavaScript variable will work though I think you need to change
9780077225957as key at the very first because you wont be access it using (.) operator. I have changed that toBook9780077225957and working fine. Here is the code I have used