getJson

suspend fun Context.getJson(url: String, jsonRequest: JSONObject? = null): JSONObject

Makes a HTTP GET request using Volley.

Author

Arnau Mora

Since

20220219

Return

The GET result in JSON format.

Parameters

url

The url to make the request to.

jsonRequest

A JSONObject to post with the request. Null indicates no parameters will be posted along with request.