title: How to convert JSON data into a tree image?
body: <p>I'm using <a href="https://treelib.readthedocs.io/en/latest/#examples" rel="nofollow noreferrer">treelib</a> to generate trees, now I need easy-to-read version of trees, so I want to convert them into images. For example:
  <a href="https://i.stack.imgur.com/sr9eC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sr9eC.png" alt="enter image description here" /></a></p>
  <p>The sample JSON data, for the following tree:</p>
  <p><a href="https://i.stack.imgur.com/oaR1K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oaR1K.png" alt="enter image description here" /></a></p>
  <p>With data:</p>
  <pre><code>&gt;&gt;&gt; print(tree.to_json(with_data=True))
  {&quot;Harry&quot;: {&quot;data&quot;: null, &quot;children&quot;: [{&quot;Bill&quot;: {&quot;data&quot;: null}}, {&quot;Jane&quot;: {&quot;data&quot;: null, &quot;children&quot;: [{&quot;Diane&quot;: {&quot;data&quot;: null}}, {&quot;Mark&quot;: {&quot;data&quot;: null}}]}}, {&quot;Mary&quot;: {&quot;data&quot;: null}}]}}
  </code></pre>
  <p>Without data:</p>
  <pre><code>&gt;&gt;&gt; print(tree.to_json(with_data=False))
  {&quot;Harry&quot;: {&quot;children&quot;: [&quot;Bill&quot;, {&quot;Jane&quot;: {&quot;children&quot;: [{&quot;Diane&quot;: {&quot;children&quot;: [&quot;Mary&quot;]}}, &quot;Mark&quot;]}}]}}
  </code></pre>
  <p>Is there anyway to use <a href="https://pypi.python.org/pypi/graphviz" rel="nofollow noreferrer">graphviz</a> or <a href="https://d3js.org/" rel="nofollow noreferrer">d3.js</a> or some other python library to generate tree using this JSON data?</p>