Live data from Hacker News

ECMA-404: The JSON Data Interchange Format [pdf]

ecma-international.org

51–60 of 199 posts

Re: ECMA-404: The JSON Data Interchange Format [pdf]

#51
post #40

Earlier quoted context omitted.

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.

https://plus.google.com/118095276221607585885/posts/RK8qyGVa...

Crockford's G+ comment is a pretty dumb reason in my opinion. Just say comments should be completely ignored in the spec. Problem solved.

Re: ECMA-404: The JSON Data Interchange Format [pdf]

#56
post #46
post #8

My faint hopes for trailing comma support are now crushed.

What does trailing comma support get you?

For large code bases, you don't break git blame by adding in new arguments. And it's one less thing to think about when editing your code: always add a comma, never worry about errors because you need to add a comma to the line above.

Re: ECMA-404: The JSON Data Interchange Format [pdf]

#58
post #34

They 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 }

The slash and the solidus are two separate entities. I am not aware of any use of the actual solidus being used for escaping.

I am talking about BACKslash (REVERSE solidus). This says they are the same: http://en.wikipedia.org/wiki/Backslash

Re: ECMA-404: The JSON Data Interchange Format [pdf]

#59
post #46

Earlier quoted context omitted.

What does trailing comma support get you?

For large code bases, you don't break git blame by adding in new arguments. And it's one less thing to think about when editing your code: always add a comma, never worry about errors because you need to add a comma to the line above.

This is why you prepend the comma before every succeeding item in a list or map.
Post reply on HN