title: Parse JSON string into an array
body: <p>I'm trying to parse a string from JSON and turn those elements into an array in Javascript. Here's the code.</p>
  
  <pre><code>      var data = "{"fname":"Todd","lname":"James","cascade":"tjames","loc":"res","place":"home", "day0":"0,1,2,3,"}";
        var getDay = data.day0;
        var getDayArray = getDay.split(",");
  </code></pre>
  
  <p>Essentially, I'm trying to get day0, which is 0,1,2,3, and turn it into an array with a structure of</p>
  
  <pre><code>[0] = 0
  [1] = 1
  [2] = 2
  [3] = 3
  </code></pre>
  
  <p>What is the best way to go about doing this?</p>