mazdik/ng-mazdik

JSON structure generalisation

suryakanta101 opened this issue · 1 comments

Hello @mazdik

you have defined JSON as per the datatable demand.. If we want to change the json attribute names (i.e data, children to dataEntity, ChildrenEntity) different name, then do we need to change the core files in tree.ts , tree-node.ts etc ???

[ { "id": "ASMODIANS", "name": "ASMODIANS", "dataEntity": { "name": "Defunct", "gender": "MALE", "cube_size": "1", "exp": 777777 }, "ChildrenEntity": [ { "id": "MALE", "name": "MALE",

Need to change JSON attribute names. Or you can use TreeFlattener and TreeBuilder.