Yaml - Sequence

Yaml Representation

About

A sequence in Yaml

Syntax

- Mark McGwire
- Sammy Sosa
- Ken Griffey
[Mark McGwire, Sammy Sosa, Ken Griffey]

Example

- Mark McGwire
- Sammy Sosa
- Ken Griffey
american:
  - Boston Red Sox
  - Detroit Tigers
  - New York Yankees
national:
  - New York Mets
  - Chicago Cubs
  - Atlanta Braves
- [name        , hr, avg  ]
- [Mark McGwire, 65, 0.278]
- [Sammy Sosa  , 63, 0.288]
-
  name: Mark McGwire
  hr:   65
  avg:  0.278
-
  name: Sammy Sosa
  hr:   63
  avg:  0.288





Discover More
Yaml Representation
How to read a Yaml File and write it in indentation or Json format with SnakeYaml ?

SnakeYaml is a java library that manages yaml document. Object to read or write must be: * a java bean (ie getter and setter + public properties) * a LinkedList * a HashMap Log file: With...
Yaml Representation
YAML Ain’t Markup Language (YAML)

YAML minimizes the amount of structural characters in order to view and understand more easily the data. For example: indentation may be used for structure, colons separate key: value pairs, ...



Share this page:
Follow us:
Task Runner