Explain the Comparison between YAML, JSON and XML

Explain the Comparison between YAML, JSON and XML
Editor">Editor Staff asked 2 years ago

Explain the Comparison between YAML, JSON and XML?

1 Answers
Editor">Editor Staff answered 2 years ago
  • YAML has some advantages over JSON like self reference, support for complex datatypes, embedded block literals, comments, and more.
  • JSON is only readable whereas YAML can be readable as well as editable.
  • JSON is a subset of YAML so that YAML parsers can be able to parse JSON.
  • YAML doesn’t use any extra delimiters. So it is light-weight than XML and JSON.