set content type to json if you're sending json.