Re:New better alterative to XML, JSON and YAML
by GeneThomas on Thursday November 07, 2024 @08:35PM
(#42083241)
See https://news.ycombinator.com/item?id=42038004#42082571
Xᴇɴᴏɴ provides semantics around common data types.
That is, in JSON, at least I know "true" represents the string "true", and true represents the boolean value true, and "1.25" is a string and 1.25 is a number. If anything, JSON would be greatly improved by having a specified datetime type, and more guaranteed semantics around numbers (e.g. integers vs. decimals vs floats for example).
XML obviously suffers the same issue, and I think it is much worse for not having types (though highlights the difference between structured "documents" vs. object serialization formats).