I am doing a console.log statement in my javascript in order to log a javascript object. I\'m wondering if there\'s a way, once that\'s done - to copy that object as javascr
Output the object with console.log from your code, like so: console.log(myObject)
Right click on the object and click "Store as Global Object". Chrome would print the name of the variable at this point. Let's assume it's called "temp1".
In the console, type: JSON.stringify(temp1).
At this point you will see the entire JSON object as a string that you can copy/paste.
You can use online tools like http://www.jsoneditoronline.org/ to prettify your string at this point.