title: Represent hierarchy in a JSON object
body: <p>I need to represent this hierarchy in a JSON object. Can someone help me out ?</p>
  
  <pre><code>- John
  --- Lee
  ------ Nash
  --------- Tim
  ------ Nicole
  ------ Kelly
  --- Alice
  --- Stanley
  </code></pre>