Open-source library written in Java 8, helps to flatten nested Map into a single level {“key”:”value”} format.

https://github.com/skirdey/flatty

As an example, it could flatten an Map object that looks like this:

to

and unflatten it back.