What is a Yaml Tag ?

Yaml Representation

What is a Yaml Tag ?

About

yaml adds tag 1) to identify the data type 2) of a text in a yaml output.

Example

Json style

{
  Time: !!timestamp '2001-11-23T20:01:42Z',
  User: ed,
  Warning: This is an error message for the log file
}

Type

Explicit tags can be:

  • local (begin with single exclamation mark '!car')
  • global (begin with 2 exclamation marks '!!com.Car').

List





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...



Share this page:
Follow us:
Task Runner