I was briefly confused by this. Maybe add a comment here, that JSONException means Jenkins does not have CSRF protection enabled :-)