Re:JSON vs. YAML – try it yourself
by onion2k on Tuesday April 07, 2015 @03:11AM
(#9332414)
Your argument is inconsistent. You're saying that YAML is hard to read, but you suggest people who find JSON hard to read ought to use a viewer that prettifies it. Why aren't you applying your own logic to YAML, and finding a viewer that makes it easier for you to read?
[ Parent
| on HN ]
Re:JSON vs. YAML – try it yourself
by CephalopodMD on Tuesday April 07, 2015 @04:23PM
(#9336903)
YAML requires a specific indentation and spacing to work. There's no changing the layout.
JSON is free to do whatever. You could have everything in one line if you wanted. You could use indentations of 8 spaces or 21 tabs. White space does not matter! Point is, it is not hard to figure out a sensible indentation and line breaking scheme if you need it. This is the beauty of braces when dealing with data.