How to define a map in a YAML file for simple POJO?

Here is how it can look like:

#MAP
keyMapping: 
    key1: value1
    key2: value2

Generally YAML format has natural support of key-value pairs.
Take a look on the following tutorial (just for example): https://github.com/Animosity/CraftIRC/wiki/Complete-idiot’s-introduction-to-yaml

Or just google “yaml map” for more details.

Leave a Comment