News for hackers. Stuff that matters.
Re:A love letter to the CSV format by noitpmeder on Wednesday March 26, 2025 @04:58PM (#43487233)
It falls down under very large integers -- think large valid uint64_t values.
Re:A love letter to the CSV format by hajile on Wednesday March 26, 2025 @07:15PM (#43488592)
JSON doesn't fail for very large values because they are sent over the wire as strings. Only parsers may fail if they or their backing language doesn't account for BigInts or floats larger than f64, but these problems exist when parsing any string to a number.
Re:A love letter to the CSV format by girvo on Wednesday March 26, 2025 @07:29PM (#43488717)
And indeed applies to CSV as well: it's just strings at the end of the day, its up to the parser to make sense of it into the data types one wants. There is nothing inherently stopping you from parsing a JSON string into a uint64: I've done so plenty!