Closed dhammikabo closed 2 years ago
<root> <file name="welcome.txt"/> <folder name="Fruits" > <file name= "apple"/> <file name = "banana"/> </folder> <folder name="Vehicles"> <folder name ="JPVehicles"> <file name ="Toyota"/> <file name = "Mazda"> </folder> <folder name ="NAVehicles"/> <file name ="Ford"/> <file name="GMC"/> </folder> </folder> </root>
With an expected json of:
[ { "type": "file", "title": "welcome.txt", "path": "/" }, { "type": "folder", "title": "fruits", "path": "/fruits", "children": [ { "type": "file", "title": "apple", "path": "/fruits/apple" }, { "type": "file", "title": "banana", "path": "/fruits/banana" } ] }, { "type": "folder", "title": "Vehicles", "path": "/Vehicles", "children": [ { "type": "folder", "title": "JPVehicles", "path": "/Vechiles/JPVehicles", "children": [ { "type": "file", "title": "toyota", "path": "/Vehicles/JPVehicles/toyota" }, { "type": "file", "title": "mazda", "path": "/Vehicles/JPVehicles/mazda" } ] } ] }, { "type": "folder", "title": "NAVehicles", "path": "/Vechiles/NAVehicles", "children": [ { "type": "file", "title": "ford", "path": "/Vehicles/NAVehicles/Ford" }, { "type": "file", "title": "GMC", "path": "/Vehicles/NAVehicles/GMC" } ] } ]
Can someone help me define what the template needs to be like ?
@dhammikabo it's not supported at the moment for use cases like this
thanks for getting back to me.
I am looking to build a template for the following XML where the nesting can have many levels (i.e. Number of sub folders levels is not known)
With an expected json of:
Can someone help me define what the template needs to be like ?