JSON5 Data Interchange Format
json5.org
JSON5 Data Interchange Format
1–10 of 157 posts
Re: JSON5 Data Interchange Format
#2Re: JSON5 Data Interchange Format
#3IIRC there is a JSON6 format which adds features and improvements on top of JSON5.
Re: JSON5 Data Interchange Format
#4 - Still no date type
- Why make it more loose? Like "Strings may be single quoted." doesn't bring any value.Re: JSON5 Data Interchange Format
#5Wait, that wasn't possible before?
I like it, most of the additions seem more like filling gaps in the original version. And the lack of trailing commas & comments have always annoyed me a bit.
But as this is a library I'm guessing NPM doesn't support it for the package.json?
Re: JSON5 Data Interchange Format
#6I mean comments and trailing commas will make JSON a bit more human friendly when used in e.g. configuration (package.json), but as a pure data exchange format it doesn't add much. Mind you, there's better data exchange formats than json, like XML (yes I said it) which can be transferred via a binary protocol (https://www.w3.org/TR/exi/) instead of the, when you think about it, awkward and inefficient data -> text format -> compression -> transfer -> decompress -> text format -> parse cycle of both 'traditional' XML and JSON both.
I wouldn't be averse to the idea of browser manufacturers or standards bodies to come up with a more efficient data transfer method that can be human-read with the right tooling like browser development tools, but which is fully compressed binary and efficient on the line. I feel like tools like GRPC are a bit too far out there.
Re: JSON5 Data Interchange Format
#7Re: JSON5 Data Interchange Format
#8Re: JSON5 Data Interchange Format
#9Couple of gripes: - Still no date type - Why make it more loose? Like "Strings may be single quoted." doesn't bring any value.
The looseness seems to be aimed at human authors who want to write JSON as if it were JS, so mainly package.json. But, json is not ideal for configuration for multiple reasons.
Re: JSON5 Data Interchange Format
#10Couple of gripes: - Still no date type - Why make it more loose? Like "Strings may be single quoted." doesn't bring any value.