update response mimetype to application/json