👴 Careful You’re reading an old article ! Some links might be broken and content may be outdated

Parsing JSON with the jQuery method $.parseJSON can be tricky to debug, specially when you’re using a mobile device.

Here is a list of errors I encoutered, and the reason why they were raised.

Unexpected token u The method tries to parse a undefined variable

Unexpected token o The method tries to parse [Object object]