set content type to application/json if sending json data