Copying data from your browser console (firefox)
1 min readJun 25, 2020
input:
console.log([{ foo: “bar”, bat: [{ foo: “bar”}] }]);
output:
> Array [ {…} ]
Right click on the data-structure ~> “Copy object”
in Clipboard:
[
{
"foo": "bar",
"bat": [
{
"foo": "bar"
}
]
}
]
Warning: This approach does not work with Cyclic Objects.