jstree dynamic JSON data from django
- by danspants
I'm trying to set up jsTree to dynamically accept JSON data from django.
This is the test data i have django returning to jstree:
result=[{ "data" : "A node", "children" : [ { "data" : "Only child", "state" : "closed" } ], "state" : "open" },"Ajax node"]
response=HttpResponse(content=result,mimetype="application/json")
this is the jstree code…