I've just released a small lightweight JSON formatter written in C. It doesn't try to validate. It doesn't buffer or call malloc making it suitable for being...
Thanks to Dave Gamble, there is already a new version with a fix for a bug that caused an extra line-break to appear after closing quotes. There is also a...
I've published a web page with some propositions to modify JSON at http://json.marler.info <http://json.marler.info> I wanted to post this so I could see what...
1847
Andrew Faulds
ajfweb@...
Jul 10, 2012 7:36 pm
I don't think this is a good idea. One of the best things, if not the best, about JSON is the lack of a version number. The standard is frozen and will never...
... I second this. If anyone wants to "modify" standard JSON, it is best done by proposing a new standard since there is no practical way of introducing...
... That's a valid argument, but is it such a big deal given that anything in software evolves and it's just natural to deal with versions? His proposition 1...
1850
Andrew Faulds
ajfweb@...
Jul 10, 2012 7:57 pm
It is a big deal, JSON is supposed to be a frozen and unchanging format. And if we change it, anything that accepts it is automatically broken, which is a very...
On Tue, Jul 10, 2012 at 12:55 PM, Borislav Iordanov ... For some perspective on this, one could consider fate of XML 1.1, which actually does not have this...
Your propositions looks very clear. However, I think it is a bad idea to change JSON. JSON definitely has weak points (such as no predefined structure for a...
If you want a standard that is even easier to read for humans than JSON, then just use YAML <http://www.yaml.org/> or something like that (JSON is a subset of...
The standard is respected in most places. Try adding comments and then using a common JSON parser (like the one in Firefox or Chrome) and you'll see an error....
1855
Andrew Faulds
ajfweb@...
Jul 10, 2012 8:12 pm
It's all well and good creating eon, but nothing stops you doing this: { "$comment: by the way, don't use values < 2" "thing": 2, } ... -- Andrew Faulds (AJF) ...
1856
Andrew Faulds
ajfweb@...
Jul 10, 2012 8:13 pm
er, that was horribly malformed, but you get what I mean. ... -- Andrew Faulds (AJF) http://ajf.me/ [Non-text portions of this message have been removed]...
Outside of special interpretation of strings, there's only one change I can think of that JSON could make that many existing parsers would be forward...
1858
Andrew Faulds
ajfweb@...
Jul 10, 2012 8:18 pm
Oh, that isn't special interpretation, that's just using keys your app doesn't check. ... -- Andrew Faulds (AJF) http://ajf.me/ [Non-text portions of this...
Here's what I mean: according to the JSON spec and in Ruby 1.8, if you parse {"j":true,"s":true,"o":true,"n"} and throw out the input but keep the result,...
Thanks for taking the time to write your propositions and post here. I agree with others here, Jos making the same points I would (though I don't care for YAML...
... You don't say so, but your Proposition II (optional quotes on keys) breaks EcmaScript 3 compatibility, because all reserved words in that standard are...
Excellent call on removing comments from your JSON parser, despite liking them. Part of my project with Eon is getting wide language support, so I'm happy to...
The author didn't specify what keys could have their quotes omitted. If I were to design that feature I would probably limit it to a common subset of supported...
1864
Andrew Faulds
ajfweb@...
Jul 10, 2012 8:47 pm
I don't think the introduction of comments alone will get your project any adoption, even though it makes it easier to implement. ... -- Andrew Faulds (AJF) ...
It doesn't just make it easy to implement; it also makes it easier to grok. So I think it has a shot at getting some usage. FWIW I'm not trying to get people...
1866
Andrew Faulds
ajfweb@...
Jul 10, 2012 8:53 pm
For configs I ask, why not just use Microsoft's Initialisation file format (.ini)? It's limited, sure, you only have 1 level of depth, but it's fine for most...
... Actually, multiple levels are permitted by convention. If the name inside the brackets has backslashes in it, it is interpreted as a multi-level name. -- ...
1871
Andrew Faulds
ajfweb@...
Jul 10, 2012 9:32 pm
I meant that you can't really nest things (although theoretically you could put an INI file as a string, but it's unwieldy) ... -- Andrew Faulds (AJF) ...