title: "not well-formed" warning when loading client-side JSON in Firefox via jQuery.ajax
body: <p>I am using jQuery's ajax method to acquire a static JSON file. The data is loaded from the local file system, hence there is no server, so I can't change the MIME type.</p>
  
  <p>This works fine in Safari, but Firefox (3.6.3) reports the file to be "not well-formed". I am aware of, and have reviewed, a similar post here on Stack Overflow:</p>
  
  <p><a href="https://stackoverflow.com/questions/677902/not-well-formed-error-in-firefox-when-loading-json-file-with-xmlhttprequest">&quot;not well-formed&quot; error in Firefox when loading JSON file with XMLHttpRequest</a></p>
  
  <p>I believe my JSON is well-formed:</p>
  
  <pre><code>{
      "_": ["appl", "goog", "yhoo", "vz", "t"]
  }
  </code></pre>
  
  <p>My ajax call is straightforward:</p>
  
  <pre><code>$.ajax({
      url: 'data/tickers.json', 
      dataType: 'json',
      async: true,
      data: null,
      success: function(data, textStatus, request) {
          callback(data);
      }
  });
  </code></pre>
  
  <p>If I wrap the JSON with a document tag:</p>
  
  <pre><code>&lt;document&gt;JSON data&lt;/document&gt;
  </code></pre>
  
  <p>as was mentioned in the other Stack Overflow question referenced above, the ajax call fails with a parse error.</p>
  
  <p>So: is there a way to avoid the Firefox warning when reading in client-side JSON files?</p>