Trailing Comma JSON Error

A comma after the final item is not valid JSON.

Error

A comma after the final item is not valid JSON.

["a", "b",]

Cause

A comma was left after the last element in an object or array.

How to fix

Remove the comma after the final value.

["a", "b"]