First, given the problem:
Error: Unexpected token P in JSON at position 31
Second, the analysis of the problem:
In JSON 31 P at the position is abnormal
"P" position in the search parameters, one by one, check to see whether it is correct JSON format
Third, the solution:
As shown above, in the three places of the above objects can be quotes