Yaml
Yaml
Yaml
· developes
YAML
-
-
Overview ⑭." u
CMU
§ It is a data serialization language which is designed to be human -friendly and works well with other programming
-
languages for everyday tasks
-
§ It's also easy to for humans to read, which is why it's a good choice for configuration
-
§ YAML does not allow the use of tabs while creating YAML files; spaces are allowed instead *
*
*
...
States que e
mapping
Scalars
--
§ Scalars in YAML are written in block format using a literal type
§ E.g.
§ Integer
-
§ 20
- -
§ 40
-
§ String
-
§ Steve
-
§ “Jobs”
-
§ ‘USA’
-
§ Float
-
§ 4.5
-
§ 1.23015e+3
- -
Mapping
- -
§ E.g.
3
-
name: person1
-
address: “India”
-
Bring
phone: +9145434345
- -
age: 40
- -
-
Integer
·key
hobbies:
i)
- reading
sequence
- playing
-
Sequence
-
§ E.g.
# ~space
-
pet animals
- cat
-
- dog
-
# programming languages
-C
-
- C++
-
- Java
-
Sequence
§ Sequence may contains complex objects
§ E.g.
§ products:
- title: product 1
price: 100
description: good product
- title: product 2
price: 300
description: useful product
JSON #
->
-
name: pr
E
-
"name":," age:Ho
I address:pune
"age":4o,
"address":"pure"