On Tuesday, 26 August 2014 at 20:18:10 UTC, Marc Schütz wrote:
On Tuesday, 26 August 2014 at 18:35:55 UTC, Jeremy Powers via
Digitalmars-d wrote:
I agree. Those would be the points with most impacts.
However, the
outcome would be quite far away from standard JSON, so we
would really be
talking about something like ASON or SDL already.
There are some beginnings like this one:
http://json5.org/
Here's another, that supports tables:
https://github.com/krisnye/ion
Unfortunately there doesn't seem to be any decently popular
winner of the
'extended JSON' language, apparently most are fine with just
adding
comments. YAML might be a choice, but I find it diverges a
bit too far
(and I'm not a fan of significant whitespace).
Well, ion already has that in its name: "indented object
notation" :-(
Basic YAML is not so bad (apart from significant whitespace,
which I also dislike), but the full specification is
surprisingly complicated (properties, tags, lots of different
ways to format text...). Even though it wouldn't be utilized in
most cases, these features would still need to be supported.
SDL is preferable IMO.
Since YAML is common enough to have implementations for most
popular programming languages, supporting it's complicated
features should not be a problem.