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

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