YAML (YAML Aint Markup Language, "YAML "") XML JSON. JSON, , , . YAML- .yaml .yml. , - . YAML /, docker-compose, Kubernetes, Ansible ..

YAML XML JSON.

  YAML, XML  JSON

, YAML-.


-

- YAML. YAML- . , : , , , , .

name: John
age: 25
city: LA

, YAML-. , , , . , .

decimal     : 10
float       : 2.5
exponential : 5.0e+12
infinity    : .inf
octal       : 0o12 
hexadecimal : 0xF	
: (, ..). . .
time  : 6:00
hexval: 0x12
octval: 0o25

, 6:00 360. 0x12 , 18, 0o25 21. , .

: YAML 1.2, 0o . 0.

/ : true false. YAML- true/false, yes/no on/off (: ).

: , yes/no on/off. , true/false.

YAML- #. :
# This a comment on the first.
# And this a commented second line.	

YAML- . . .

, \, . :

signature: "John Williams \nSales Executive \nXYZ Company \tLA."	

:

:, {, }, [, ], ,, &, *, #, ?, |, -, <, >, =, !, %, @, `

. .


, , :

message: >
  this is a normal string
  which spans more than multiple lines
  but needs to be treated
  as a single line.

> , . \n. , >-.


, , , .

message: |
  this is a multi-line string
  which spans across multiple lines
  and needs to be treated
  as a multi-line string.	

| . \n, |-.


~ null. .

foo: ~
bar: null	

YAML /. :

teams:
  - name: Australia
    rank: 3
  - name: New Zealand
    rank: 4
  - name: England
    rank: 1
  - name: India
    rank: 2	

. , . , .

-. .

, :

teams: [ Australia, New Zealand, England, India ]	

YAML :

student:
  name: John
  age: 22
  city: NY
  college: NYU
  gpa: 3.5	

. YAML-.


YAML-. , , .


50% Merion Academy