I found this link https://helpx.adobe.com/experience-manager/using/creating-granite-datasource.html on how to populate a select field with a datasource, and it basically just passes an array into it. How can i do something similar with pathfield? I have some JSON that i want to pass in and have it displayed in the tree structure of the pathfield
Do you mean parsing a json to display as tree without actually creating the nodes in JCR?
This was possible in Classic UI using CQ.Ext.tree.TreePanel but in Touch UI am yet to find anything similar.