One fundamental idea behind anytree is the common tree node data structure, which can be imported from different formats and exported to different formats.
Available exporters:
Exporter missing? File a request here: Issues.
JSON Importer
Dictionary Exporter