Course sections

Software Development and Design, Lecture 1

Lesson 1: Compare Data Formats (XML, JSON, YAML)

devnet associate 200-901 exam study guide course

Compare data formats (XML, JSON, and YAML)

There are two main data encoding formats that are used in APIs. They are XML and JSON (pronounced as Jay-sun). JavaScript Object Notation (or JSON) is both human friendly and machine-readable format and sends data in name-value pairs. JSON is best known for the curly brace syntax. It is popular, because it is easier to read and natively maps to Python dictionary data structure.

XML Example

JSON Example

Now, let’s convert above JXML into JSON.

YAML Example

Now, let’s convert above JSON into YAML.