title: Split a multidimensional javascript array
body: <p>I have an array that looks something like this</p>
  
  <pre><code>[[1,2,3],[1,2,3]]
  </code></pre>
  
  <p>Because of the way it is being received (via ajax) it is being read as a string instead of an array
  using <code>.split(',')</code> doesn't work here.</p>
  
  <p><code>console.log</code> shows it as <code>[[1,2,3],[1,2,3]]</code> so I know the data is going through, however if I were to put the array directly in the page it shows properly as <code>array array</code>  </p>
  
  <p>This is the ajax with the recommendation given below. It still comes as plaintext.   </p>
  
  <pre><code>$.ajax({
      url: "file.php" + "?param=" + param,
      type: "POST",
      data: 'data',
      datatype: 'json',
      success: function (data) {
          object = JSON.parse(data);
          filters();
      }
  })
  </code></pre>