HTML
I have an accordion. Click on " View Report " will expand.

JSON
I also have a .json file that contain 4 objects.
{
"A": {
"report_type": "chapter test",
"section_num": "2",
"assignment": "algebra 1",
"date": "2/10/2015",
"correct_num": "15",
"avg_score": "89"
},
"B": {
"report_type": "section exercise",
"section_num": "2.2",
"assignment": "algebra 1",
"date": "2/09/2015",
"correct_num": "11",
"avg_score": "44"
},
"C": {
"report_type": "test",
"section_num": "1",
"assignment": "algebra 1",
"date": "1/10/2015",
"correct_num": "15",
"avg_score": "75"
},
"D": {
"report_type": "practice test",
"section_num": "1",
"assignment": "algebra 1",
"date": "1/09/2015",
"correct_num": "15",
"avg_score": "79"
}
}
My goal is to generate an accordion for each object I have in my json file - so 4 in my case.
Then, set their text fields base on the data in my json file accordingly.
Any hints / suggestions on that will be much appreciated !
How can I dynamically generate HTML dom using jQuery base on JSON data ?