jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Can TreeGrid display this nested JSON data? Reply To: Can TreeGrid display this nested JSON data?

Can TreeGrid display this nested JSON data? #62464

learner
Participant

Hello,

I have slightly different situation than this.I have two json data old one and new one separately but of similar nature only the varying the value which I need to display in two different columns. So my question is I have only one source object called local data. So how could I accomplish this getting two different data in different columns. My Json data is as follows:

OLD
{
“workers”: [
{
“catid”: 1,
“catname”: “People”,
“workers”: [
{
“wid”: 10,
“wname”: “NicePeople”
},
{
“wid”: 11,
“wname”: “GreatPeople”
}
]
},
{
“catid”: 2,
“catname”: “Computer”,
“workers”: [
{
“wid”: 12,
“wname”: “Pc”
}
]
}
]
}

NEW

{
“workers”: [
{
“catid”: 1,
“catname”: “People”,
“workers”: [
{
“wid”: 10,
“wname”: “NicePeople”
},
{
“wid”: 11,
“wname”: “GreatPeople 1”
}
]
},
{
“catid”: 2,
“catname”: “Computer”,
“workers”: [
{
“wid”: 12,
“wname”: “Laptop”,
“denomination”:[100,200,300]
}
]
}
]
}