anytree icon indicating copy to clipboard operation
anytree copied to clipboard

Tree from python nested dictionary

Open GiorgioBarnabo opened this issue 3 years ago • 0 comments

Hi there,

Hi there,

is there any easy way to create a tree from a python nested dictionary? For instance, I would like to turn: {'tax': {'a':{'c':{}, 'd':{}}, 'b': {'e':{}, 'f':{}}}}

tax --- a ------- c ------- d --- b ------- e ------- f

In general, I do not understand what format the json_importer takes as input. Could you please provide some examples? It there any online editor to first manually design the tree with nodes and arrows and then export it in the right format?

Thank you.

GiorgioBarnabo avatar Nov 06 '22 17:11 GiorgioBarnabo