I've got a JSON output that has this structure.
{
"38467": {
"name": "Tony Parker",
"book": [
{
"title": {
"name": "MediaWorks"
},
},
],
}
"59678": {
"name": "Ray Thomas",
}
}
The actual JSON output is much longer, but I only want to store the author's name and their publisher. I need to save multiple individual records for a single model.
I am currently using jQuery to assign values to input elements.
$('#Author' + i + 'Title').val(response...);
However, it seems that this method is not working as expected.
Your help would be greatly appreciated.
Thank you.