fuel-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:

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

Usage

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

See FuelJson.kt