4 ms·
> The fact that nobody does that and instead serialize it to ISO-style string is telling about json. Tell me more about that. I'm not sure I grasp what it is t
by softwarebeware 5y ago
> The fact that nobody does that and instead serialize it to ISO-style string is telling about json.
Tell me more about that. I'm not sure I grasp what it is telling about JSON?
- zokier 5y agoI see it as a sign that JSON is not that great for structured data if people prefer to pack their datetime structure into a string rather than the more native object format.
- softwarebeware 5y agoOh, gotcha. Well, I definitely agree it would make more sense for it to be an object like you mentioned but I think it's probably more explainable by the fact there is native support for ISO date / time strings in most programming languages, making it just as easy to parse a date or time from a string value and having the added advantage of reducing the size of the payload on the wire. I could be wrong