Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.network/NetworkHelper/getJson

getJson

abstract fun getJson(url: String, etag: String? = null, additionalHeaders: Map<String, String>? = null, completion: DeserializedNetworkCallback<JSONObject>): Disposable
abstract fun getJson(url: URL, etag: String? = null, additionalHeaders: Map<String, String>? = null, completion: DeserializedNetworkCallback<JSONObject>): Disposable

Asynchronously fetches the given url and returns the payload parsed as a JSONObject An optional etag can be supplied if the resource being requested is already available on the device and may be able to be re-used.

Parameters

url

The Url to GET

etag

Optional etag of the currently known resource

additionalHeaders

Optional map of additional headers to add to the request

Generated by Dokka
(c) Tealium 2026