Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dickeytk
· 6y ago · 0 comments
the only thing I miss are the comments
Comments
[–]
kevinoid
6y ago
Then you may be happy to learn that OpenAPI documents can be written in YAML (since OpenAPI 2.0).
[–]
tasogare
6y ago
Attributes are also super nice to extend existing data. Doing so in JSON is a nightmare.
[–]
dvh
6y ago
If there were comments, people would start putting data in comments.
[–]
dickeytk
OP
6y ago
but for that you'd have to use a custom parser. If you use a custom parser you could put data in comments today anyways. I don't understand that argument.
[–]
westurner
6y ago
JSON5 supports comments:
https://json5.org/
[–]
throwaway894345
6y ago
But who supports json5?
[–]
hombre_fatal
6y ago
You can use json5 for comments and compile it to json.
[–]
CameronNemo
6y ago
You can use (yaml, hjson, jsonnet) for the same purpose. What sets json 5 apart?