title: Traversing 'JSON Array of arrays' in python 'List of lists' format
body: <p>For reasons I don't understand, the JSON format data I need to parse that comes out of a webservice isn't in nme value pairs.  'For simplicity and to reduce overhead' the returned JSON seems to be in a format that works with python eval but as far as I can see not with javascript (caveat, my javascript is very poor so I could be wrong - php etc, fine. js, not so much!)</p>
  
  <p>So the data is returned as:</p>
  
  <pre><code>[[0, 'OK'],
   [['ITEM10314', ['ITEM10397']],
    ['ITEM10315', ['cornflower']],
    ['ITEM10397', ['ITEM10315']],
    ['ITEM10514', ['ITEM10397']],
    ['ITEM003', []],
    ['ITEM004', []],
    ['servertest', ['ITEM004', 'ITEM003']],
    ['serverroot', []]]]
  </code></pre>
  
  <p>(in case you are interested, it is a reply from a MKLiveStatus for Nagios LQL host query)</p>
  
  <p>The first array is the status, then subsequent arrays consist of the host monitored in nagios and that host's parents (in an inner array).</p>
  
  <p>Nice, isn't it.  But I need to get it into decent key/value pairs and there must be a better way than writing my own parser for this (not least because this is one data output but there are several more in similar formats).</p>
  
  <p>I'm trying to keep this all in native js but if there is a jQuery easy way then I'm easily led to lazyness.  No need to worry about old browsers, I don't care, this project ends up using d3.js which won't work on old browsers anyway.</p>
  
  <p>Any suggestions?  The depth in this case won't go below what it is here, so that at least is a known. However, I can't just flatten it, I need to know which parents a host has after this.</p>
  
  <p>I have seen a few python-js links here but not arbitrary unknown sized lists in lists.</p>