Fix JSON trailing comma
A trailing comma after the last element in a JSON object or array causes a parse error. JSON does not allow trailing commas.
Common causes
- Extra comma after the last item in an object or array.
- Copy-paste from JavaScript (which allows trailing commas).
How to fix
- Remove the comma after the last element.
- Use a JSON validator to locate the exact position.
Use our tool
Validate JSON