News for hackers. Stuff that matters.
Re:JSON vs. YAML – try it yourself by Patient0 on Tuesday April 07, 2015 @03:13AM (#9332419)
The stack overflow page is disappointing because in my opinion all of the answers miss the point: Yaml is designed to be readable and editable by humans. Json is only designed to be human readable - and intentionally does not have features to support editing by people.

Json intentionally does not support comments. Think about that for a bit and you'll realise what Json is for and what it isn't for.

As SeoxyS said: use yaml for config files, Json for APIs.

Re:JSON vs. YAML – try it yourself by mercurial on Tuesday April 07, 2015 @03:17AM (#9332431)
Actually, after finding out about TOML[1], I would suggest to look at it. It is a lot simpler than YAML, explicitly does not support dangerous features like deserializing arbitrary data structures, while being very readable. Spec is not entirely stable yet, though.

1: https://github.com/toml-lang/toml

Re:JSON vs. YAML – try it yourself by theyeti on Tuesday April 07, 2015 @03:30AM (#9332459)
Agreed. After using both YAML and TOML, I'd say that TOML is much more readable as compared to YAML.
Re:JSON vs. YAML – try it yourself by LoneWolf on Tuesday April 07, 2015 @04:19AM (#9332578)
TOML does indeed look good, reminds me of a extended .ini format
Re:JSON vs. YAML – try it yourself by lfender6445 on Tuesday April 07, 2015 @11:35PM (#9338662)
can you give me dumbed down example of 'deserializing arbitrary data structures' not sure i follow
Re:JSON vs. YAML – try it yourself by joelthelion on Tuesday April 07, 2015 @03:15AM (#9332426)
We don't need two different languages for this.
Re:JSON vs. YAML – try it yourself by dozzie on Tuesday April 07, 2015 @04:51AM (#9332672)
Oh, yes, we do. We need a language targeted at humans that is machines can process and we need a language targeted at machine processing that is inspectable by humans. Those are two contradicting targets: the latter calls for simplicity, but the former calls for shortcuts[#] to make human's work easier, which adds, not reduces, complexity.

[#] Shortcuts like not quoting keys and omitting braces and commas in hash definition.