by dmortin · 7y ago · 0 comments
copy(JSON.stringify(obj, null, 2))
obj can be parsed with JSON.parse if it is in text.That’s rather condescending, and probably not true. Surely you must be able to think of reasons why someone would use a website instead of writing a one-line program.
And the JS console was only an example. Other languages can also pretty print JSON trivially. E.g. python.