YAML is a method of human friendly data serialization. This is standard for all programming languages. The most distinguishing point of comparison is that YAML provides the following syntax enrichment These things have no corresponding expression in JSON:
YAML offers syntax for relational data: instead o f repeating identical data later in a document , an YAML document can refer it an anchor earlier in the file stream.
An array containing itself could be expressed in this way
YAML also offers extensible data type s beyond primitive strings, floats, ints, bools that can include class type declarations. It has slim framework core.
No additional characters are used braces, brackets, quotations marks formatting of structured data. Rather than repeating identical data later in a document, a YAML document will point out to an anchor earlier in the file/stream.
Recursive structures (for example, an array containing itself) can be expressed this way.
YAML has complete multilingual documentation. You can use YAML for design patterns of typography forms, rtl support, micro formats.
YAML has been specifically created to work well for common use cases such as: configuration files, log files, interprocess messaging, cross-language data sharing, object persistence, and debugging of complex data structures. When data is easy to view and understand, programming becomes a simpler task.
YAML information is intended to be used in two ways: for machine processing, and for human consumption. The challenge of reconciling these two concepts is best done in three distinct translation stages: representation, serialization, and presentation. Representation refers how YAML views native data structures to achieve portability between programming environments.
Serialization concerns itself with turning a YAML representation into a serial form, that is, a form with sequential access constraints. Presentation deals with the formatting of a YAML serialization as a series of characters in a human-friendly manner.YAML could be ideal for semantic web applications.
The tag repository is purposefully left out of the scope of this specification. This allows it to devlop to better support YAML applications. Hence, developers are encouraged to submit new “universal” types to the repository.Let me write more on YAML in the forthcoming blogs.