Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I agree with what you said about XML. But in its stead we have a lot of JSON which is several respects is even worse.

The worst part of it is that it doesn't have a stable definition for numbers, making it impossible to guarantee you're getting the same value back if you encode and then decode a number. Reliably preserving the data you serialise using it should be a primary feature for an encoding format. JSON can't even do that.



Why do you need a stable serialization for an unstable data type? Use a string of you want stability.


The point is that a 64-bit integer is stable in the language I'm using (which is most languages).

My opinion is that a serialisation format that explicitly makes something as fundamental as the representation of numbers unspecified is not useful as a data representation format.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: