-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Response Formatter [enhancement] #43
Comments
That is because your http server does not set the correct content type header. header("Content-type: application/json"); before the print of the json string. |
Ah, yea. You should try the newest version from git. If you downloaded this extension from the mozilla's site - its not the newest version and this feature is not implemented there. |
I had the same problem, unfortunately, even the master has no support for JSON in the preview window, only if the type is text. I added some code to readyStateChange function else if( contentType.substring(0, 16) == 'application/json' ) after the response['preview']. Its a ROUGH pretty print, as it doesn't have syntax highlighting. |
Hello, the version on the Mozilla website is still the 2015's one, and this add-on is still not able to visualise json format. I have compiled the sources and generated the xpi, which I cannot install because it is not signed by Mozilla (yes, even toggling the |
Please add formatting/syntax highlighting for JSON responses. Currently the preview tab says: "Unable to preview this content type."
I have used HighlightJS before and can recommend it: https://highlightjs.org/
The text was updated successfully, but these errors were encountered: