title: Convert Nested Object Linked List into Array Node js
body: <p>Linked List nested Object</p>
  
  <blockquote>
    <p>Input Should be like this</p>
  </blockquote>
  
  <pre><code>var ii = {"val":"1","next":{"val":"2","next":{"val":"3","next":{"val":"4","next":{"val":"5","next":null}}}}}; 
  </code></pre>
  
  <blockquote>
    <p>Output should be like  [1,2,3,4,5]</p>
  </blockquote>