- #36
mathmari
Gold Member
MHB
- 5,049
- 7
pbuk said:Well I'd be inclined to flatten the tree in the response into an object with the id as the key:
which will make it much easier to use, but otherwise, yes.JavaScript:{ 'id-1234': { title: '...', children: [ 'id-2345', 'id-9876', ], }, 'id-2345': { // ... }, // ... }
I haven't understood what you mean. Could you explain that further to me?