I want to be able to parse this json tree and get the value of the attribute checked for every element :
{
"children": [
{
"children": [
{
"children": [],
"id": 49,
"name": "nice",
"checked": true,
"level": 3,
"path": "0_1_0_0",
"lineLength": 180
}
],
"id": 48,
"name": "amira",
"checked": false,
"level": 2,
"path": "0_1_0"
}
],
"id": 47,
"name": "mahdi",
"checked": true,
"level": 1,
"path": "0_1"
}
I'm able to read the data this way :
var data = this.flatData;
I want to be able to read the checked attribute for every child inside a for loop or a foreach and if it's true set a certain behaviour to my code do any one know how to do this and thanks in advance.