getContentAsJson

fun getContentAsJson(    id: String,     shouldIgnoreCache: Boolean = false,     listener: ArcXPContentCallback? = null): LiveData<Either<ArcXPException, String>>

getContentAsJson This function requests a result by ANS ID as a json string

returns result either through callback interface or livedata

Return

LiveData subscribe to this livedata for successful results (or use callback interface) Note: this returns the same live data as all other '..AsJson' calls, so can subscribe directly to jsonLiveData once

Parameters

id

ANS ID

listener

Callback interface for optional callback override ArcXPContentCallback.onGetJsonSuccess for success override ArcXPContentCallback.onError for failure or leave null and use livedata result and error livedata