Accept application/json as well as application/x-www-form-urlencoded