Skip to content

Extra comma error not caught #101

@CanyonCasa

Description

@CanyonCasa
{ "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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions