Reputation: 7230
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?
Upvotes: 19
Views: 8551
Reputation: 1127
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.
Upvotes: 1
Reputation: 7230
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.
Upvotes: 20