Firefox: view raw JSON on network tab
Asked Answered
D

2

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?

Diakinesis answered 10/1, 2018 at 12:25 Comment(0)
D
21

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.

Diakinesis answered 10/1, 2018 at 13:0 Comment(1)
Good answer, but totally crap that you have to do this just to copy the json.Raddatz
T
0

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.

Teena answered 28/5 at 10:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.