How can I change the ajax response before creating jsTree? I would like to access each node identifier and add a prefix to it. The only hint on the jsTree page is this: the function will receive two arguments - the load node and the function. "I need to do this before the tree is actually created to avoid duplicate identifiers in the document.
"json_data" : { "ajax" : { "type": "GET", "url" : "tree.json" }, "data" : function(node, func){
I expected to get JSON data here, change it and come back? But it will explode.
source share