Pretty print JSON

Sometimes, I just don't want to open the browser console to view the object that an API has returned. Maybe I am feeling lazy, maybe I have too many things open/logging in the console, whatever the reason, this tiny snippet helps me quickly print whatever it is in the UI.

2 {JSON.stringify(object, null, 2)}

Made with and