R06: YAML vs JSON

  • Due Jan 24, 2020 at 2:39pm
  • Points 5
  • Questions 5
  • Available until Jul 13, 2020 at 8am
  • Time Limit None

Instructions

XML is a common data language used for authoring game content, but many designers are quick to complain about its verbose syntax. It seems it is good for machines to read, but annoying for humans to type.

JSON offers some improvement over XML as a content authoring, but it too can feel tedious. Every opening and closing brace must be carefully matched and every string value properly quoted. Sometimes you just want to write out the dialog that your characters will speak.

Read this article comparing YAML and JSON from a human-writing perspective: http://sangsoonam.github.io/2017/03/13/yaml-vs-json.html Links to an external site.

In the questions below, if you ever want to know how to convert a chunk of YAML into a chunk of JSON, you can use these online converter tools:
- JSON to YAML: https://www.json2yaml.com/ Links to an external site. 
- YAML to JSON: https://www.json2yaml.com/https://www.json2yaml.com/convert-yaml-to-json Links to an external site. 

 

Only registered, enrolled users can take graded quizzes