As the original thread is now closed to replies, I'm opening a new one.
For context, the topic was to generate a debug-panel-like tree from arbitrary JSON in the dashboard.
Anyway, here's my take using the jstree library:
https://flows.nodered.org/flow/ede5ae392f1f06134ee734e1041c79aa