Unexpected Token JSON Error

The parser found a character it did not expect, usually an unquoted key or value.

Error

The parser found a character it did not expect, usually an unquoted key or value.

{"name": Alice}

Cause

Unquoted keys, single quotes, or a stray comma are the most common causes.

How to fix

Wrap every key and string value in double quotes, then validate the JSON again.

{"name": "Alice"}