JSON Parse error:

1

I have this error in JSON that I can not understand. This is my return on console:

  

SyntaxError: JSON Parse error: Unrecognized token '

asked by anonymous 06.12.2016 / 13:39

1 answer

1

The error refers to the format of your JSON . The JSON#parse function requires the parameter to be a% with% valid. Check the contents of your JSON variable and validate if it is a valid object. One tool for validation is this.responseText .

    
06.12.2016 / 13:50