title: How to convert Json to Array In javascript for chart.js
body: <p>How to convert Json data to Array. I can't do this
  and I have Json data as :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var setdata = [{
     "data": [{
             "month" : "January",
              "name" : "Alex",
               "count" : 10
     }]
   },
    {
     "data": [{
             "month" : "February",
              "name" : "Alex",
               "count" : 20
    },
    { 
     "data": [{
             "month" : "February",
              "name" : "John",
               "count" : 30
    },
    { 
     "data": [{
             "month" : "February",
              "name" : "Mark",
               "count" : 40
    }]
                },
   {
     "data": [{
             "month" : "March",
              "name" : "Alex",
               "count" : 10
    },
    { 
             "month" : "March",
              "name" : "John",
               "count" : 20
    }]
   }
      ]</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to convert to array as :</p>
  
  <pre><code>var months = ["January", "February", "March"]
  
  var data =     [10, 0, 0],
                 [0, 20, 10],
                 [0, 30, 20],
                 [0, 40, 0] 
  </code></pre>
  
  <p>I want setdata to create stacked chart.js,can you do this for me?  help me please.
  thanks.</p>