title: Changing servers, and getting SyntaxError: JSON.parse: unexpected character parsererror
body: <p>I'm moving php code from one linux server to another, and the new one is producing rubbish.</p>
  
  <p>In Firebug, the first result looks great, like normal json encoded values, and works.</p>
  
  <p>The second result (new server) is preceded by "html" and "body" tags, a "p" tag, and then "quot;" instead of actual quotes around the data (sorry, I couldn't get the form to display all that), and throws an error.</p>
  
  <p>In both cases, the code is the same, the output an array passed through json_encode.</p>
  
  <p>Could this be a configuration error?</p>
  
  <p>Thanks in advance.</p>
  
  <p>John</p>