You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since one of the goals of JSON5 is to be more easily writable for humans, and since I happened to find this project by Googling "json trailing comma", I think it makes sense for JSON5 to output text that is more easily writable for humans too.
The examples in the README would be output as (note the added trailing commas):
{foo: "bar",while: true,this: "is a multi-line string",here: "is another",hex: 3735928559,half: 0.5,delta: 10,to: null,finally: "a trailing comma",oh: ["we shouldn't forget","arrays can have","trailing commas too",],}
Of course, this would only be when the space argument is specified with a truthy value. Otherwise, JSON5 should probably output text as compact as possible.
Thoughts?
The text was updated successfully, but these errors were encountered:
Since one of the goals of JSON5 is to be more easily writable for humans, and since I happened to find this project by Googling "json trailing comma", I think it makes sense for JSON5 to output text that is more easily writable for humans too.
The examples in the README would be output as (note the added trailing commas):
Of course, this would only be when the
space
argument is specified with a truthy value. Otherwise, JSON5 should probably output text as compact as possible.Thoughts?
The text was updated successfully, but these errors were encountered: