Pretty printing Javascript objects as JSON

Sometimes when working with Javascript objects, it is useful to print the objects out as JSON strings and take a look at their values. Take the following simple Javascript object: If you print it out via console.log, it looks like this: This … [read more]