Use pretty print when encoding json

This pull request will format the json output when using `Response::json()`.