Re:Specifying JSON
by skrebbel on Friday May 20, 2016 @03:00AM
(#11735985)
Wait, did you read the article? How does YAML help with specifying JSON? Or with specifying YAML, for that matter?
[ Parent
| on HN ]
Re:Specifying JSON
by RangerScience on Friday May 20, 2016 @05:54AM
(#11736635)
YAML supports tags, which could describe schema. JSON doesn't. Every method to describe schema for JSON will work for YAML, plus extras - like tags, and you could use node references to basically define types, and re-use them throughout.
Sometimes I feel like I'll go to Ruby hell for saying this, but as far as I can tell, XML is actually really good at that part... because it's a markup syntax, not a data syntax, while JSON and YAML are data syntaxes, not markups.