title: Splitting Delimited String vs JSON Parsing Efficiency in JavaScript
body: <p>I need to retrieve a large amount of data (coordinates plus an extra value) via AJAX. The format of the data is:</p>
  
  <pre><code>-72.781;;6,-68.811;;8
  </code></pre>
  
  <p>Note two different delimiters are being used: <code>;;</code> and <code>,</code>.</p>
  
  <p>Shall I just return a delimited string and use <code>String.split()</code> (twice) or is it better to return a JSON string and use <code>JSON.parse()</code> to unpack my data? What is the worst and the best from each method?</p>