We've been using JStree beta 10 successfully so far using the alternative JSON format.
However, we'd like to add some of our own custom JSON data to the alternative JSON format.
The custom data is unrelated to the display or use of JStree and is just for our own
bookkeeping related to the tree data.
This could be one node of the tree:
{"id":"e3","text":"retail","icon":true,"li_attr":{"id":"e3"},"a_attr":{"href":"#"},"state":{"loaded":true,"opened":false,"selected":false,"disabled":false},"parent":"t1"}
I tried adding some of my own data to this ("JUNK":"MOREJUNK"):
{"id":"e3","text":"retail", "JUNK":"MOREJUNK","icon":true,"li_attr":{"id":"e3"},"a_attr":{"href":"#"},"state":{"loaded":true,"opened":false,"selected":false,"disabled":false},"parent":"t1"}
But when I saved the structure (using get_json) and then placed the tree back in the page, the added data was gone.
Is there a place in the alternative json structure where I can add custom data that will be ignored by JStree?
J