У меня есть JSON
, который содержит динамический.Так как же показать JSON
данные в древовидной структуре GUI, т.е. развернуть и свернуть в HTML-страницу в угловых?
{
"id": 13,
"examName": "tt2",
"examStatus": "INCOMPLETE",
"examConfigStatus": {
"status": "COMPLETED",
"generalConfigStatus": "COMPLETED",
"instructConfigStatus": "COMPLETED",
"timeConfigStatus": "COMPLETED",
"marksConfigStatus": "COMPLETED",
"questionPaperStatus": "COMPLETED",
"numQuestionsExam": 12,
"questionPapers": [
{
"status": "COMPLETED",
"launguage": "ENGLISH",
"minNumSetsPerLanguage": 2,
"questionSets": [
{
"status": "COMPLETED",
"setName": "SET_A",
"numQuestions": 12
},
{
"status": "COMPLETED",
"setName": "SET_B",
"numQuestions": 12
}
]
}
]
},
"shiftStatusList": [
{
"shiftId": 9,
"shiftName": "Shift1",
"shiftDate": "2019-12-10",
"shiftStartTime": "09:00",
"shiftEndTime": "12:00",
"status": "INCOMPLETE",
"centreStatusList": [
{
"caId": 13,
"centreName": "ORNATE",
"status": "INCOMPLETE",
"numAvailableTerminals": 17,
"numAllocatedTerminals": 0,
"numFreeTerminals": 17,
"numApplicants": 0,
"moderators": [],
"hallStatusList": [
{
"hallName": "ORNATE",
"status": "COMPLETED",
"numAvailableTerminals": 17,
"numAllocatedTerminals": 0,
"supervisors": []
}
]
}
]
},
{
"shiftId": 10,
"shiftName": "shift2",
"shiftDate": "2019-12-10",
"shiftStartTime": "13:00",
"shiftEndTime": "16:00",
"status": "INCOMPLETE",
"centreStatusList": [
{
"caId": 12,
"centreName": "ORNATE",
"status": "INCOMPLETE",
"numAvailableTerminals": 17,
"numAllocatedTerminals": 0,
"numFreeTerminals": 17,
"numApplicants": 0,
"moderators": [],
"hallStatusList": [
{
"hallName": "ORNATE",
"status": "COMPLETED",
"numAvailableTerminals": 17,
"numAllocatedTerminals": 0,
"supervisors": []
}
]
}
]
}
]
}