I keep getting following error:

SyntaxError: Unexpected token “ in JSON at position 2

when I try to call following function, below is how I call it.


This is the function I'm trying to call.

    function demoteManyPeople(address[] people, string whyThough) external {
        require(people.length < 10);
        for (uint index = 10; index > people.length; index--) {
             qualifiedForDemote[people[index]] = false;
             DemotePeople(people[index], whyThough);
  • I just ran into this error in Remix, and my issue was I didn't wrap the argument with quotes. – ripper234 Jun 11 '18 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.