The Unexpected Reason Why Your Builders Hard Hat Has A Limited Lifespan
One other gotcha that can result in "SyntaxError: Unexpected token" exception when calling JSON.parse() is using any of the following in the string values: New-line characters. Unexpected indent. This line of code has more spaces at the start than the one before, but the one before is not the start of a subblock (e.g., the if, while, and for statements). I have some JavaScript code that works in FireFox but not in Chrome or IE. In the Chrome JS Console I get the follow error: "Uncaught SyntaxError: Unexpected end of input". The JavaScript code...
Tonka - Tough Builders - Hard Hat & Bucket Playset | BasicFun!
