Broken example
{
"name": "Ada",
}Corrected example
{
"name": "Ada"
}Why this error happens
Trailing commas usually appear when developers copy object syntax from JavaScript or edit a list and forget to remove the old separator from the final item.
How to fix it
- Locate the last item in each object or array.
- Remove any comma that comes directly before a closing brace or bracket.
- Validate the JSON again.
- Format the fixed result to confirm the structure.