Google-chrome – Copy JSON from console.log in developer tool to clipboard

google-chrome-devtoolsjson

Using Chrome Developer Tools, i have printed a JSON object with console.log.

is there a way that I can copy it to the clipboard?

Best Answer

If the right-click -> copy is not available you could try:

1 - Right-click the object and select "Store as global variable"

2 - The console will print the new variable's name, for example:

//temp1

3 - Type:

copy(temp1)   

The object is now available in your clipboard.

Tested in chrome 36

Related Question