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

Someone explain to me please, how type-safe and JSON can even exist in the same sentence? JSON has so many edge cases for handling numbers, floats, bools etc. Why would you not use gRPC or even something like CapnProto if you want to maintain that type-safety-ness?


Which edge cases do you mean? Are you confusing it with YAML? I know YAML has some serious footguns [1]. In JSON I'm not aware of any.

[1] https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-fr...




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

Search: