Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox: view raw JSON on network tab

I'm having a problem with Firefox's debugging panel, spcecifically on the Network tab; when a POST request sends some JSON, it shows the request body inside a tree-like viewer; while this viewer is cute and everything, I actually need to copy and paste the actual raw JSON text into another tool.

There doesn't seem to view the actual JSON request from this panel. Does someone know of some way of viewing the actual RAW JSON inside it?

like image 226
Haroldo_OK Avatar asked Jan 10 '18 12:01

Haroldo_OK


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). * https://developer.mozilla.org/en-US/docs/Tools/JSON_viewer You can set this pref to true to enable this viewer.

How do I view HTTP response headers in Firefox?

Select the Network tab or directly press Ctrl+Shift+E together from your computer keyboard. 3. Reload the page, select any HTTP request, and the HTTP headers will be displayed on the right panel.

How do I see responses and requests in Firefox?

Headers tab. The Headers tab has a toolbar, followed by three main sections. Status: The response status code for the request; click the “?” icon to go to the reference page for the status code.


1 Answers

After some fumbling around, I found out that if you right-click the request, the browser gives you the option to copy the post data (which would return the JSON, if it is a POST) or to "Edit and resend", which would open a dialog that, among other things, has the JSON itself.

like image 55
Haroldo_OK Avatar answered Sep 19 '22 15:09

Haroldo_OK