Move pretty JSON stringify into its own module