Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Tree*/
- [{"unit_id":"19","localunit_id":"8","name":"Top","parent_id":"0","id_shop":"-1","deleted":"0","parent":"#","children":[{"unit_id":"7","localunit_id":"7","name":"m","parent_id":"19","id_shop":"-1","deleted":"0","parent":"19"}]},{"unit_id":"5","localunit_id":"5","name":"Transport","parent_id":"0","id_shop":"-1","deleted":"0","parent":"#","children":[{"unit_id":"2","localunit_id":"2","name":"Seri","parent_id":"5","id_shop":"-1","deleted":"0","parent":"5","children":[{"unit_id":"1","localunit_id":"1","name":"Cope","parent_id":"2","id_shop":"-1","deleted":"0","parent":"2"}]}]}]
- /*Iterated**/
- [{"unit_id":"1","localunit_id":"1","name":"Cope","parent_id":"2","id_shop":"-1","deleted":"0","parent":"2","group":1},{"unit_id":"2","localunit_id":"2","name":"Seri","parent_id":"5","id_shop":"-1","deleted":"0","parent":"5","group":1},{"unit_id":"5","localunit_id":"5","name":"Transport","parent_id":"0","id_shop":"-1","deleted":"0","parent":"#","group":1},{"unit_id":"7","localunit_id":"7","name":"m","parent_id":"19","id_shop":"-1","deleted":"0","parent":"19","group":1},{"unit_id":"19","localunit_id":"8","name":"Top","parent_id":"0","id_shop":"-1","deleted":"0","parent":"#","group":2}]
- Back
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement