title: Creating a visual tree from JSON file
body: <p>There is a lot of info how to create a tree inside JSON file, but is there any way to visualise dependencies from JSON file to any visual interface, picture or terminal as tree ( like on pictures ) ?</p>
  
  <p>Stole this pictures from another post</p>
  
  <p><img src="https://i.stack.imgur.com/sr9eC.png" alt="Tree 1"></p>
  
  <p><img src="https://i.stack.imgur.com/oaR1K.png" alt="Tree 2"></p>
  
  <p>There is my code to generate JSON from database ( Im generating parentID with Radom module ) :</p>
  
  <pre><code>    emp = []
  for item in root.iter('empl'):
          name_tag = {'name': '', 'dep': '', 'Title': '', 'email': '', 'id': int(item.attrib['id'])}
          for data in item.iter('field'):
              if data.attrib['id'] == 'displayName':
                  name_tag['name'] = data.text
              elif data.attrib['id'] == 'dep':
                  name_tag['dep'] = data.text
              elif data.attrib['id'] == 'Title':
                  name_tag['Title'] = data.text
              elif data.attrib['id'] == 'Email':
                  name_tag['email'] = data.text
              elif data.attrib['id'] == 'id':
                  name_tag['id'] = data.text
              else:
                  continue
          emp.append(name_tag)
  
  
  session_factory = sessionmaker(engine)
  session = session_factory()
  
  
  emp_list = [TableName(name=item['name'], department=item['dep'], Title=item['Title'], email=item['email'], id=item['id']) for item in employees]
  avoid_duplicates = list(connection.execute('select * from TableName'))
  
  
  for i in emp_list:
      if i.name not in [j[1] for j in avoid_duplicates]:
          session.add(i)
  
  session.commit()
  
  write_list = [{'id': i[0], 'name': i[1], 'dep': i[2], 'Title': i[3], 'email': i[4]} for i in list(connection.execute('select * from TableName'))]
  
  session.close()
  connection.close()
  
  
  for randomID in write_list:
      randomID['parentId'] = random.randrange(0, 487, 2)
  
  with open('data.json', 'w') as file:
      json.dump(write_list, file)
  </code></pre>
  
  <p>Afther this JSONs looks like :</p>
  
  <pre><code>{
      "id": 9,
      "name": "Name1",
      "dep": "dep",
      "Title": "title",
      "email": "email",
      "parentId": 408
  },
  {
      "id": 10,
      "name": "Name2",
      "dep": "dep",
      "Title": "title",
      "email": "email",
      "parentId": 316
  },
  {
      "id": 12,
      "name": "Name3",
      "dep": "dep",
      "Title": "title",
      "email": "email",
      "parentId": 160
  }
  </code></pre>
  
  <p>Is there any way how I can visualize 'id - parentID' relations to a visual tree ? </p>