Skip to content

vivek656/kotlin-json-dsl

Repository files navigation

kotlin-json-dsl

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.

Installation

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

We want contributors that want to extend the functionality of this library.

If you think you can add more feature and fix some bugs lets connect on project Discussions. Or you can directly email the contributors.

About

koltin dsl for simple json operations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages