I tried to two seperate ajax query JSON object list and get json list, like this:
listperson = [
{
Id: 25,
name: "person1"
},
{
Id: 26,
name: "person2"
}
];
listPersonDetails=
[
{
personId:25,
lecture: "math",
score:80
},
{
personId:25,
lecture: "chm",
score:95
},
{
personId:26,
lecture: "math",
score:60
}
]
And then I tried to display treeview; but I couldnt convert it . How can I merge and convert to treeview like this in jstree:
----person1
-person1 info 1
-person1 info 2
----person2
-person2 info 1
-person2 info 2
question from:
https://stackoverflow.com/questions/65880725/two-relational-json-array-merge-and-convert-to-treeview-jstree 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…