19

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?

3 Answers 3

20

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Good answer, but totally crap that you have to do this just to copy the json.
1

For others that land on this page, If you know the api endpoint and the request (you can get both from the Network tab), I would suggest to use a programmatic approach.

"curl" from the bash command line, python requests library, and many other choices depending on the programming language. These can get the raw json and further more can be fully integrated into the application, no manual copy paste.

Comments

1

There doesn't seem to view the actual JSON request from this panel.

Perhaps this wasn't possible when you asked your question, but there now is a toggle you can click to see the full response.

enter image description here

enter image description here

You can copy this JSON by clicking on the text, doing a Select All, and Copying it.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.