Set JSON spaces to 2 in development mode

This is a proposal to prettify JSON output during development. I'm still getting used to the code and one of the things I noticed myself doing is experimenting with API calls. It's nice to have the output readable, at least for development.