tzander
4 Jun 2008, 7:59 AM
In order to create a tree from json i need a node "text"which seems to be the name of the node. Is there a way to change that name.
Like:
[{
id: 3,
text: 'Karl Heinz',
leaf: true
}, {
id: 1,
text: 'Michel',
leaf: true
}
]
in
[{
id: 3,
name: 'Karl Heinz',
leaf: true
}, {
id: 1,
name: 'Michel',
leaf: true
}
]
Thanks
Like:
[{
id: 3,
text: 'Karl Heinz',
leaf: true
}, {
id: 1,
text: 'Michel',
leaf: true
}
]
in
[{
id: 3,
name: 'Karl Heinz',
leaf: true
}, {
id: 1,
name: 'Michel',
leaf: true
}
]
Thanks