Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging my web app with JSON/Firefox - Firefox handling of JSON?

Tags:

I'm attempting to debug my web application with FireFox3. However, when a JSON feed comes from my application, Firefox wants to open up the "application/json" in a new program. Is there a way to configure FireFox3 to handle JSON like regular text files and open up the JSON in the current tab?

Thanks.

like image 899
JP Richardson Avatar asked Sep 18 '08 17:09

JP Richardson


People also ask

How do I view JSON data in Firefox?

Firefox has a built-in JSON viewer that activates when a server sends a file as "application/json" document and when you open a . json file or drag the . json file in a Firefox window (tab). You can set this pref to true to enable this viewer.

What is remote debugging in Firefox?

The answer is remote debugging, which will enable you to connect the android device to your workstation via a USB cable and debug your mobile webpage on your desktop. On a side note, you can debug multiple device sizes while performing responsiveness tests simultaneously.


1 Answers

The JSONView Firefox extension is really nice.

It formats, highlights, etc...

The only drawback is that it requires the mime type to be set to "application/json". But it is not really a drawback for you, because based on your "answer" (which shouldn't be an answer) your problem is that the mime type is "application/json" and as a result Firefox doesn't know what to do with it and downloads it instead of displaying.

JSONView

like image 122
Tarnay Kálmán Avatar answered Oct 18 '22 06:10

Tarnay Kálmán