Convert flattened yaml to hierarchical yaml in Java

Viewed 158

Is it possible to convert flattened yaml structure to hierarchical using java?

My Input (flattened yaml) :

person.address.city: Paris
person.address.zipcode: 75000
person.address.country: France

Expected output (hierarchical yaml) :

---
person:
  address:
    city: Paris
    zipcode: 75000
    country: France
0 Answers
Related