This example will show how to load a yaml file into a java Map. Yaml, which is similar to JSON, is a human friendly format that is an alternative to a flat property structure. Instant yaml is a helpful tool that allows you to format yaml online. The snippets below will use the yaml file which contains the various yaml library name and a brief description.
Snake Yaml
In this snippet we will use SnakeYaml, a YAML parser and emitter for Java, to parse a yaml document into a Hashmap.