Read YAML file with Java

What is YAML file?

From Wikipedia:

YAML (a recursive acronym for “YAML Ain’t Markup Language”) is a human-readable data-serialization language. It is commonly used for configuration files and in applications where data is being stored or transmitted.

In this blog we will see how to read YAML files with the help of Java


  1. Read simple YAML file (with only scalars)
  2. Read an array in YAML file

About This Site

The main aim of this site is to share knowledge with fellow software test specialists who are keen to grow both technically and professionally.

Categories