Fuel - Documentation
  • README
  • Core
    • Fuel
  • Support
    • Android
    • Coroutines
    • AAC LiveData
    • RxJava
    • Reactor
  • Deserialization
    • Forge
    • Gson
    • Jackson
    • Json
    • Kotlinx-Serialization
    • Moshi
  • Legacy
    • v1.x.y
Powered by GitBook
On this page
  • Installation
  • Usage

Was this helpful?

  1. Deserialization

Json

PreviousJacksonNextKotlinx-Serialization

Last updated 5 years ago

Was this helpful?

The Json extension package for Fuel.

Installation

You can and install fuel-json with Maven and Gradle. The json package has the following dependencies:

  • Json: 20170516

implementation 'com.github.kittinunf.fuel:fuel:<latest-version>'
implementation 'com.github.kittinunf.fuel:fuel-json:<latest-version>'

Usage

fun responseJson(handler: (Request, Response, Result<FuelJson, FuelError>) -> Unit)

val jsonObject = json.obj() //JSONObject
val jsonArray = json.array() //JSONArray

See FuelJson.kt

download
Fuel