Skip to content Skip to sidebar Skip to footer

Json.parse Throwing Illogical Syntax Error: Unexpected Token

I have a problem with parsing the json string passed from a method in PHP over an AJAX call. The string is [{'type':'successful','message':'Prijava uspe\u0161na!'}] When I try t

Solution 1:

Your JSON has a BOM, which is not a valid token.

Ensure that whatever is sending your JSON is encoding it correctly without this BOM.

Post a Comment for "Json.parse Throwing Illogical Syntax Error: Unexpected Token"