Editing JSON hierarchies in streamlit

For a primarily internal tool, I need to display and edit in Streamlit a JSON hierarchy that is three levels deep.

I am looking for a component, library, or approach within existing streamlit that would let me

  1. drag and drop items to new locations within the hierarchy
  2. edit the text associated with individual leaves

Then save it back to a JSON object in the same format as it originated.

Is anyone aware of anything that might help?

Hi @fredzannarbor

There is a component called streamlit-tree-select that shows a hierarchical tree and may be customize to your use case.

Hope this helps!