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

> JSON data model: records (objects), arrays, booleans, numbers and strings

Is this the JSON data model? There are places I’ve seen this fall apart: very large and very small numbers, nulls, empty objects / arrays. How confident are you that every participant in your data interchange handles all these cases the same way? I’m suspicious of libraries that assume only they will handle your JSON.

Edit: just remembered another one. I had to deal with the fallout from a JSON serializer that dropped leading zeros from floating point numbers smaller than one, to save space.



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

Search: