Json
The Json extension package for Fuel.

Installation

You can download and install fuel-json with Maven and Gradle. The json package has the following dependencies:
  • Fuel
  • Json: 20170516
1
implementation 'com.github.kittinunf.fuel:fuel:<latest-version>'
2
implementation 'com.github.kittinunf.fuel:fuel-json:<latest-version>'
Copied!

Usage

1
fun responseJson(handler: (Request, Response, Result<FuelJson, FuelError>) -> Unit)
2
3
val jsonObject = json.obj() //JSONObject
4
val jsonArray = json.array() //JSONArray
Copied!
See FuelJson.kt
Copy link