Convert your data from JSON to YAML and back and verify their validity.
JSON (JavaScript Object Notation) is a lightweight data interchange format. It is easy to read and write and easy to parse and generate using code.
It is based on a subset of the JavaScript programming language.
YAML (YAML Ain't Markup Language) is a human-readable data serialization language used for configuration files and data storage or exchange. It uses a minimal syntax that relies on indentation to define the structure of the data.
JSON and YAML are both used to represent data in a structured way but their syntax and features are different:
{}
to define objects and square brackets []
to define arrays. YAML uses indentation, colons and dashes to denote key-value pairs and lists.#
character.