Introducing MapNeat, a JVM JSON Transformation Library

MapNeat is a JVM library written in Kotlin, that provides an easy to use DSL (Domain Specific Language) for manipulating and transforming existing JSONs, XMLs, or POJOs into new JSONs. The trick is that no intermediary model classes are needed, and all the changes are done using a mostly descriptive approach.

The library can be particularly useful when integrating various systems that need to exchange messages in different formats, creating DTOs, etc.

Given Kotlin's high interoperability with most of the JVM languages, MapNeat is easy to use in any Java project without any particular hassle.

How it Works

A typical transformation starts with the source input (JSON, XML, or any Java Object), and then it contains a series of Operations applied in order: