make sure the content type is json