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?

1 Like

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!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.