How do I copy and paste some complicated JSON object logged to the console in Google Chrome Developer Tools to Notepad?
Right-click on the object and pick "Store as global variable"
The console will give you a name for the global variable you just made. It will be something like: temp1
Punch in copy(JSON.stringify(temp1)); at the console.
If you paste into Notepad everything will be jammed into one line, so paste into the left side of https://jsonformatter.org/json-pretty-print instead.
Copy everything from the right side to Notepad to have good JSON formatting.
No comments:
Post a Comment