koltin dsl for json operations
This library provided DSL to create Json objects.
how you create Json in Javascript
{
"field" : "value"
}
in kotlin using Jackson
val node = ObjectMapper.createObjectNode()
node.set("field" , TextNode("value"))
with this library
json {
"field" .. "value"
}
see the repo's wiki and tests for more examples.
Library is generally available to install via maven central.
if using maven as build tool use.
<dependency>
<groupId>io.github.vivek656</groupId>
<artifactId>kotlin-json-dsl</artifactId>
<version>0.0.1</version>
</dependency>
if using other build tools like gradle, sbt or need jars to work with see the package page. HERE
If you think you can add more feature and fix some bugs lets connect on project Discussions. Or you can directly email the contributors.