Set response content type to json

At the moment, we seem to get responses back as `text/html`, regardless of whether the request content type was set to `application/json` or not.