I have a complex json string that looks like this:
{
"id":"2016666",
"dt":"2012",
"object_extends":[
{
"extend1":{
"id":"2016666",
"dt":"2012",
"active":"true",
"object_extend":[
{
"extend2":
{
"id":"2016666",
"secondary":null
},
"extend3":
{
"id":"2016666",
"pet":"willy"
}
}
]
}
}
]
}
Now i want to print this like a tree, but when searching for days i have to modify the json(which is not a option). How can i print this in a treeview? I tried for loops but each extend can have other attributes then other objects. Hope somebody can help me with this!