title: Converting nested json objects to an array
body: <p>Suppose we have the following Json object, with further nest objects called items. Is it possible to convert these directly into a json array?</p>
  
  <pre><code>var data = {
      code: 42,
      items:{ 
              item_1: {
                  id: 1,
                  name: 'foo'
              }, 
              item_2: {
                  id: 2,
                  name: 'bar'
              }
              item_3: {
                  id: 2,
                  name: 'bar'
              }
      }
  };
  </code></pre>