Re:Why I no longer have an old-school cert on my HTTPS site
by aapoalas on Saturday May 24, 2025 @11:35AM
(#44081765)
It's more a problem of support and backwards compatibility. JSON and parsers for it are so ubiquitous, and the spec completely lacks any versioning support, that adding a feature would be a breaking change of horrible magnitude, on nearly all levels of the modern software infrastructure stack. I wouldn't be surprised if some CPUs might break from that :D
JSON is a victim of its success: it has become too big to fail, and too big to improve.
Re:Why I no longer have an old-school cert on my HTTPS site
by Sammi on Saturday May 24, 2025 @04:06PM
(#44083470)
There are easy workarounds to getting bigints in JSON: https://github.com/GoogleChromeLabs/jsbi/issues/30#issuecomm...
Re:Why I no longer have an old-school cert on my HTTPS site
by josephg on Sunday May 25, 2025 @07:00AM
(#44086962)
Sure; and I can encode maps and sets as entry lists. Binary data as strings and so on. But I don’t want to. I shouldn’t have to.
The fact remains that json doesn’t have native support for any of this stuff. I want something json-like which supports all this stuff natively. I don’t want to have to figure out if some binary data is base64 encoded or hex encoded or whatever, and hack around jackson or serde or javascript to encode and decode my objects properly. Features like this should be built in.
Re:Why I no longer have an old-school cert on my HTTPS site
by Sammi on Sunday May 25, 2025 @07:24AM
(#44087068)
Agree. JSON definitely needs an update so we can get better ergonomics built in.
In code you control you can choose to use JSON5: https://json5.org/
JSON could easily be extended to support them - but there’s no standards body with the authority to make a change like that. So we’re probably stuck with json as-is forever. I really hope something better comes along that we can all agree on before I die of old age.
While we’re at it, I’d also love a way to embed binary data in json. And a canonical way to represent dates. And comments. And I’d like a sane, consistent way to express sum types. And sets and maps (with non string keys) - which JavaScript also natively supports. Sigh.