JSON-Viewer icon indicating copy to clipboard operation
JSON-Viewer copied to clipboard

Extra comma error not caught

Open CanyonCasa opened this issue 4 years ago • 0 comments

{
  "a": 1,
  "b": 2,
}

JSON-Viewer does not throw (detect) error for non-compliant extra comma after '2'. Same for arrays, such as [1,2,3,]. As discussion below acknowledges some tools like VSCode silently ignore the error, but unfortunately NodeJS does not in compliance with the JSON specification. Kind of frustrating when JSON-Viewer parses OK, but then Node import fails.

Related Stack Overflow Thread Discussion

CanyonCasa avatar Feb 23 '21 22:02 CanyonCasa