title: Add brackets to an array for google maps api
body: <p>i posted this earlier but i don't think it was understood what i was asking. so here is an what i have a variable that contains:
  <code>var locations = ['San Jose California', 37.279518, -121.867905], ['San Antonio Texas', 29.424122, -98.493629], ['Uvalde Texas', 29.209684, -99.786171]</code></p>
  
  <p>what i need is this format for google maps api:</p>
  
  <pre><code>var locations2 = [
        ['San Jose California', 37.279518, -121.867905],
        ['San Antonio Texas', 29.424122, -98.493629],
        ['Uvalde Texas', 29.209684, -99.786171]
  ];
  </code></pre>
  
  <p>i have tried this <code>var locations3 = "[" + locations + "]"</code> but i believe it makes it a string.</p>
  
  <p>any ideas? thanks.</p>