Note that there are some explanatory texts on larger screens.

plurals
  1. POFirefox's Firebug giving error of "not-well formed" with JSON on jQuery Ajax response; using jCryption plugin with JavaCryption implementation
    text
    copied!<p>I'm using <a href="http://www.jcryption.org/" rel="nofollow noreferrer">jCryption</a> and <a href="http://jcryptionforjava.wordpress.com/" rel="nofollow noreferrer">JavaCryption</a>, the server-side implementation of the jCryption JavaScript plug-in.</p> <p>There appears to be an issue with what seems the Java implementation, in that FireFox's firebug is reporting a "not-well formed" error with the JSON that is returned to the client from the server. So, unlike the thread, <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>, this is coming from the response object, NOT the request object.</p> <p>I tried adding .JSON, application/json as a MIMEtype to my web server, IIS 7.5, but that didn't help. Then I tried .JSON, text/plain and that didn't help, either.</p> <p>Do I have to edit the Java code to force application/json, when it sends it back to the client? Or, what can I do to resolve this issue?</p> <p>Thank you for any help.</p> <p>Here is the raw output for the first one causing the "not-well formed" error:</p> <pre><code>HTTP/1.1 200 OK Content-Length: 294 Server: Microsoft-IIS/7.5 X-Powered-By: Nothing Date: Tue, 23 Oct 2012 02:10:24 GMT {"e":"10001","n":"b3fbbe3d2e3599e840a117be08f72726d8ee643dada3805ab24b9a9150d123a7a0902ae45f2f2e194e5462c4f5c3b91cca91b48d1f07c6cd7fab629a331148f66516df05dfa0bd95cc9f477069e60fa54eab8a5586d08436717758d9706b90c884eded7260af1ce5ff70f507b9c5ddb019b6e1313a77f4eab3b2d04a09934d8d","maxdigits":"131"} </code></pre> <p>Here is the second one:</p> <pre><code>HTTP/1.1 200 OK Content-Length: 200 Server: Microsoft-IIS/7.5 X-Powered-By: Nothing Date: Tue, 23 Oct 2012 02:10:24 GMT {"challenge":"zf6iI5D8hVDCmMVuHIFy71ikKxcqVzkLplMDKP6Hgz7EPv2STfYjcBlf6ep1wu5OMCCsPKf4dRECpVvr7yIK8kCm0I5c4xTXCkmnyyzBXeHgbvkzGWVmaLzxj5RYajdWLFkvN1waV41FhR+PtK1tOmGe8k57wSZ/yyZUAsvh7NaJf6THc9P9rQ=="} </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload