This problem occurs because the returned result is in html format, not json format, so it cannot be parsed.
The solution is also very simple, just add 'f':'json'
or when requesting the service. 'f':'pjson'
The difference between the two is that json is more compact and pjson is easier to read.