Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aseemk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
aseemk
14y ago
Yes, I realize I didn't explain it as well in the README as I had in conversations and emails. I find JSON tedious and error-prone to generate by hand. I also frequently wish I could document the data with comments. Others have written abou
32.
▲
by
aseemk
14y ago
Thanks for the feedback! I never considered YAML precisely because there doesn't seem to be much support for it. I'll definitely look into it. =)
33.
▲
by
aseemk
14y ago
JSON5 is also meant to be language-agnostic. It derives its syntax from ES5 in the same way that JSON derived its syntax from ES3. I'm aware that JSON is final — it's my hope that a new format that's easier to write (whether this or somethi
34.
▲
by
aseemk
14y ago
I actually had no idea that YAML is a superset of JSON. Thanks! I'll look into it.
35.
▲
by
aseemk
14y ago
I'm actually a big fan of Douglas Crockford. And don't worry, my code uses semicolons. ;) I'm not sure why you lump quoting keys with semicolons, though; his regular JS style guide doesn't discourage quoting object key (neither does JSLint)
36.
▲
by
aseemk
14y ago
Comments: yes, I read Douglas Crockford's post on the matter. I guess I'm not genuinely worried about that, though, and my hope is that shipping a JS parser that works on both the client and the server will help standardize implementations
37.
▲
by
aseemk
14y ago
Thanks for the feedback. It certainly would be great if there existed tools to let me write and update JSON with nicer syntax like this; any ideas how that might be possible? My motivation for this was actually hoping that this gets adopted
38.
▲
by
aseemk
14y ago
Writing, or at least editing, JSON by hand seems unavoidable if you develop on Node, as modules' "manifests" are JSON files. I also love to make tests data-driven where possible. JSON is the natural format for data on Node, and again, test
39.
▲
by
aseemk
14y ago
Author here. This idea stemmed from long-running frustration every time I hand-wrote JSON (particularly common for Node/npm packages and test cases). After stewing on it for over a year, I bit the bullet today and made it a reality. Feedbac
40.
▲
Show HN: JSON5 — modern JSON
(github.com)
64 points
by
aseemk
14y ago
|
84 comments
41.
▲
by
aseemk
15y ago
I've noticed it, but I'm still wary of that data entering Facebook at all.
42.
▲
by
aseemk
15y ago
I dunno about studies, but for me it's definitely the eyes-not-on-the-road. I'm so thankful I haven't gotten into a crash despite the few times I've been stupid enough to text while driving.
43.
▲
by
aseemk
16y ago
I've lurked Hacker News for a long time, but never posted or commented until now. This is one of the most inspirational things I've ever read. Thank you for posting.