Multi-document support in YAML
YAML itself doesn’t inherently support multi-document structures like JSON arrays or objects. YAML is primarily designed to represent a single data structure. However, there is a way to handle multiple documents within a single YAML file using the — document separator.
# Document 1
key1: value1
key2: value2
---
# Document 2
key3: value3
key4: value4
As you can see that we have used “—” serves as a document separator.
What Type of Language is YAML?
As we know the world of technology is filled with various modern and old languages which keep changing from time to time, each one of these languages serves a specific purpose and thus each language is used for performing certain tasks only. But when it comes to the programming language called YAML people sometimes get confused because they have trouble understanding what type of programming language YAML is, so in this article, we will understand what type of language the YAML programming language is.
Contact Us