I am working on a python flask application and would like to display the data from a JSON file onto the html webpage. But when I do so, I loose the JSON structure and the result is not what I expected it to be. I would like the webpage to display the data in a expandable structure. Can I get some help with this?
JSON Data
[
[
{
"Name": "Harold",
"ID": "CX1024",
"Job": "Sales",
"Address": {
"Street": "37 Philadelphia Avenue",
"Postal Code": "84010",
"City": "Bountiful"
},
"Emergency Contact": {
"Person": "Mark",
"Relation": "Brother",
"Phone": "801-296-4536"
}
},
{
"Name": "James",
"ID": "CX1120",
"Job": "Sales",
"Address": {
"Street": "671 Lonely Oak Drive",
"Postal Code": "04617",
"City": "BROOKSVILLE"
},
"Emergency Contact": {
"Person": "Stephen",
"Relation": "Father",
"Phone": "251-454-0515"
}
}
],
[
{
"Name": "Sarah",
"ID": "RJ1020",
"Job": "Management",
"Address": {
"Street": "4991 Stoney Lane",
"Postal Code": "75081",
"City": "Richardson"
},
"Emergency Contact": {
"Person": "Curtis",
"Relation": "Husband",
"Phone": "972-995-0475"
}
},
{
"Name": "Clarkson",
"ID": "RJ1117",
"Job": "Management",
"Address": {
"Street": "4663 Kovar Road",
"Postal Code": "02192",
"City": "Needham"
},
"Emergency Contact": {
"Person": "Angie",
"Relation": "Sister",
"Phone": "508-578-0498"
}
}
]
]