Skip to content

sumanth979/YAML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

YAML

YAML scripting represents configuration data and in applications where data is being stored or transmitted.

Comments in YAML

The lines starts with "#" will be considered as commented line

Creating a Key Value Pair

Key1: Value1
Key2: Value2
...

Creating a Array/List

  • Ordered Collection of Data
Data:
- value1
- value2
- value3

Creating a Dictionary/Map

  • Unordered Collection of Data
  • To store the properties of an item in a key-value pair.
Dictionary:
  key1: value1
  key2: value2
...

List inside a List

Property:
- List1:
  - value1
  - value2
  
- List2:
  - value1
  - value2
...

Dictionary inside a Dictionary

Dictionary:
  key1: value1
  key2: 
    key1: value1
    key2: value2
  Key3: value3
...

Dictionary/Map inside a List

List:
- Dictionary1:
    key1: value1
    key2: value2
    
- Dictionary1:
    key1: value1
    key2: value2
...

Releases

No releases published

Packages

No packages published