New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Convert JSON Object to JSTree Directly using JS Function #2405
Comments
SolutionHowever i found just the way to do so. Just followed the folowing syntax: Here i replaced the data element with my recursive function to generate the array of objects required for the 'data' element inside the jstree function Recursive JS Function
Final Solution
|
@vakata It would really be helpful if you can include similar function in the js tree library. It might be helpful for many folks. |
You can set core.data to a function and transform the data as needed (all documented). As for data transformation - it is a simple function that depends heavily on the input - there is nothing more I can include. |
Hello guys,
I have been working with some API and want to generate a preview of the json data received from an GET API call.
I got this plugin and was thinking how would it automatically generate an tree by just feeding the json data to it.
Since i had a multidimensional json response i couldn't find any positive way to do so.
The text was updated successfully, but these errors were encountered: