Skip to content

DaikonWeb/topinambur-gson

Repository files navigation

Topinambur Gson

Topinambur

Topinambur Gson is a simple Topinambur's exension. The main goal is:

  • Adds Json support to the Topinambur's response body

How to add Topinambur Gson to your project

Gradle

  • Add JitPack in your root build.gradle at the end of repositories:
repositories {
    ...
    maven { url 'https://jitpack.io' }
}
  • Add the dependency
implementation 'com.github.DaikonWeb:topinambur-gson:1.14.1'

Maven

  • Add the JitPack repository to your build file
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
  • Add the dependency
<dependency>
    <groupId>com.github.DaikonWeb</groupId>
    <artifactId>topinambur-gson</artifactId>
    <version>1.14.1</version>
</dependency>

Getting Started

data class TestBody(val message: String)
val response = "https://some.api".http.get()

println(response.json<TestBody>())

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published