[{'name': 'Folder 1', 'id': 'OY00', 'type': 'folder', 'children': [{'name':
    'Folder 2', 'id': 'zRDg', 'parent': 'OY00', 'type': 'folder'}, {'name':
    'DX00025.jpg', 'id': '9Xdd', 'parent': 'OY00', 'type': 'jpeg'}]}, {
    'name': 'Folder 3', 'id': 'ZDE1', 'type': 'folder'}]
Sorting JSON object(s) into a Hierarchy