ECMA-404: The JSON Data Interchange Format [pdf]
121–130 of 199 posts
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#122Earlier quoted context omitted.
that would be valid JSON, so it's not a problem. Standard tools can still parse it and reliably turn it into native objects. The same is not at all true when comments exist. People will start putting /* @annotations */ that can only be ready by certain tools which breaks the whole point of JSON - it's a data interchange format.
That sounds smart on first pass, but doesn't really help. If people were going to use /* @annotations / and instead put them in keys, either way, the other side gets a document that isn't the one intended*. So regardless if it parses or not, it doesn't really help.
And this may even encourage people into separating the data payload from the metadata, who knows?
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#123Earlier quoted context omitted.
because that is what json is for
no, that's not what json for. JSON is for exchange data between machines. We already have data interchange formats for humans, we call those 'languages'.
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#124Several comments mention the "Software shall be used for Good, not Evil" licensing issue in the JSON code from json.org. The original json.js file from json.org had this copyright and license: Copyright (c) 2005 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includi…
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#125Earlier quoted context omitted.
closures, prototypical inheritance, the syntax for object/array literals. and I know it's not strictly part of the language, and it's deeply unfashionable to say so, but I'm quite a fan of the DOM, too.
Closures and literals are pretty basic things for many languages and very well-known. Prototypical inheritance may have gotten much more exposure via JS, but I'm not overly impressed with it, and I hardly think it makes up for the rest of the language.
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#126My faint hopes for trailing comma support are now crushed.
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#127Earlier quoted context omitted.
Nope, sorry.
This sucks, because it limits the usability of JSON. It should interfere with its being a serialization and interchange format, but for configuration files anything without comments is useless.
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#128Earlier quoted context omitted.
It simplifies generating JSON, since you don't need a special case for the last item, and it simplifies editing it, since you don't need to do something special when adding a new item at the end. I can't see any benefit to not having it, honestly.
> It simplifies generating JSON, since you don't need a special case for the last item In which language can't you do array.join(",")? You can even do that in Java with one of the myriad of string libraries. I haven't hand-coded joins since (at least) six or seven years.
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#129They say JSON is not for binary and won't change. With a backslash (oops reverse solidus) you could send binary data - eg an image. { myimage: "\01\02\03" } of course, not efficient. You could base64-encode it and put that in a string. I think some syntax for binary would be useful - eg { myimage: 0x010203 }
Re: ECMA-404: The JSON Data Interchange Format [pdf]
#130Earlier quoted context omitted.
No, I think people understand that. They just don't care, and find it amusing that other people do care/must care. Consider it an "anti-'people who take licensing seriously' license" .
Yeah, people trying to comply with laws are just hilarious. Sigh.