The Json extension package for Fuel
.
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>'
fun responseJson(handler: (Request, Response, Result<Json, FuelError>) -> Unit)
val jsonObject = json.obj() //JSONObject
val jsonArray = json.array() //JSONArray
See FuelJson.kt