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

Fixes #784
Merge pull request #785 from vvo/784-fix-json-content-type-override

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