Closed ifeuille closed 4 years ago
JavaScript has allowed trailing commas in array literals since the beginning, and later added them to object literals (ECMAScript 5) and most recently (ECMAScript 2017) to function parameters.
JSON, however, disallows trailing commas.
such as { "k1":"v1", }