Skip to content

Instantly share code, notes, and snippets.

@yayMark yayMark/objectAsJSON.js
Last active Mar 8, 2020

What would you like to do?
JavaScript: pretty print an object as formatted plain text
console.log(JSON.stringify(obj, null, 2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.