Set json content type only when content type is not set