Provide ability to override content-type when `json` option used

Fixes #784