title: How to get JSON string from URL with Javascript?
body: <p>I'm trying to get JSON string from an URL:</p>
  
  <p><a href="http://megarkarsa.com/gpsjson.php" rel="nofollow">http://megarkarsa.com/gpsjson.php</a></p>
  
  <p>The URL echoes JSON location value to be shown as string, with this result for example:</p>
  
  <pre><code>{"BMS":[{"id":"PR01","type":"prajurit","lat":"-6.253310","long":"107.156219"},{"id":"PR02","type":"prajurit","lat":"-6.224084","long":"106.653069"},{"id":"PR03","type":"kendaraan","lat":"-6.244316","long":"106.649734"}]}
  </code></pre>
  
  <p>I need to get this string from javascript, so i can parse it later with JSON.parse(string).</p>
  
  <p>I have tried to use getJson, but seems it can't be done since it's not real Json value, but string.</p>
  
  <p>How can i do that? Every suggestion will be appreciated.</p>