4 ms·
csv is wildly ambiguous, to the frustration of ~every data science engineer in industry json is not show me an application that parses `{'a':'b'}` as valid JS
by preseinger 4y ago
csv is wildly ambiguous, to the frustration of ~every data science engineer in industry
json is not
show me an application that parses `{'a':'b'}` as valid JSON, i'm actually interested, probably there are some which exist, but there is no ambiguity about those applications being wrong
- taeric 4y agohttps://news.ycombinator.com/item?id=12796556 https://news.ycombinator.com/item?id=12796556
- preseinger 4y agofun doc! it lists many of the undefined behaviors of the spec, and many of the problems in common parsers afaict none of them permit keys or value strings to be expressed with single quotes
- taeric 4y agoApologies for the, in retrospect, somewhat lazy posting of an article with no comment. I thought that article had a section about how many of them allow single quotes if you don't "enable strict." I am not seeing it on review, though; so either I made that up in my mind, or I'm remembering another article. Either way, apologies. I did find https://github.com/json5/json5 https://github.com/json5/json5 no a quick search that basically says what I asserted about people just jumping to another standard for things that you hand write. I was probably also thinking heavily about python's dict syntax. (And I confess, I still don't know when to use single versus double quotes in python...)
- preseinger 4y agono worries mate