title: Convert JSON object to array using javascript
body: <p>I have a jQuery ajax request which returns data in json format, how can we convert it and push in to an array. TIA.</p>
  
  <pre><code>[{"Day":"Nov 03","Saavor Kitchen":null,"Home Kitchen":2,"Restaurant":null},
  {"Day":"Nov 06","Saavor Kitchen":null,"Home Kitchen":1,"Restaurant":1},
  {"Day":"Nov 07","Saavor Kitchen":null,"Home Kitchen":null,"Restaurant":1},
  {"Day":"Nov 08","Saavor Kitchen":null,"Home Kitchen":2,"Restaurant":null},
  {"Day":"Nov 09","Saavor Kitchen":null,"Home Kitchen":4,"Restaurant":null},
  {"Day":"Nov 10","Saavor Kitchen":null,"Home Kitchen":3,"Restaurant":null},
  {"Day":"Nov 11","Saavor Kitchen":null,"Home Kitchen":4,"Restaurant":null},
  {"Day":"Nov 13","Saavor Kitchen":null,"Home Kitchen":4,"Restaurant":1},
  {"Day":"Nov 14","Saavor Kitchen":null,"Home Kitchen":2,"Restaurant":1},
  {"Day":"Nov 15","Saavor Kitchen":null,"Home Kitchen":5,"Restaurant":null},
  {"Day":"Nov 16","Saavor Kitchen":null,"Home Kitchen":5,"Restaurant":null},
  {"Day":"Oct 30","Saavor Kitchen":null,"Home Kitchen":null,"Restaurant":2},
  {"Day":"Oct 31","Saavor Kitchen":null,"Home Kitchen":2,"Restaurant":3}]
  </code></pre>
  
  <p>Desired output :-</p>
  
  <pre><code>    [
        ['Day', 'Saavor Kitchen', 'Home Kitchen', 'Restaurant '],
        ['Nov 03',  1000,      400, 50],
        ['Nov 04',  1170,      460, 90],
        ['Nov 05',  660,       1120, 58],
        ['Nov 06',  1030,      540, 88]
      ]  
  </code></pre>