Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zeroimpl
39 days ago
|
parent
|
context
|
favorite
| on:
A love letter to the CSV format
Example? I know there's some ambiguity over whether literals like
false
are valid JSON, but I can't think of anything else.
tubthumper8
39 days ago
|
next
[–]
That _shouldn't_ be ambiguous, `false` is a valid JSON document according to specification, but not all parsers are compliant.
There's some interesting examples of ambiguities here:
https://seriot.ch/projects/parsing_json.html
recursive
39 days ago
|
prev
[–]
Trailing commas, comments, duplicate key names, for a few examples.
int_19h
39 days ago
|
parent
[–]
Trailing commas and comments are plainly not standard JSON under any definition. There are standards that include them which
extend
JSON, sure, but I'm not aware of any JSON library that emits this kind of stuff by default.
recursive
39 days ago
|
root
|
parent
[–]
I'm not aware of any CSV library that doesn't follow RFC4180 by default, and yet... this whole thread.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: