Trailing comma in JSON
What the error means, why it happens and how to fix it in seconds.
JSON does not allow a comma after the last element of an object or array: [1,2,] and {"a":1,} are invalid, even though JavaScript accepts them. Remove the last comma — Auto-fix does it for you.
Example of broken JSON:
{
"items": [1, 2, 3,],
"total": 6,
}