getJsonValue - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / getJsonValue

getJsonValue

suspend fun TelegramFlow.getJsonValue(json: String?): JsonValue

Suspend function, which converts a JSON-serialized string to corresponding JsonValue object. This is an offline method. Can be called before authorization. Can be called synchronously.

Parameters

json - The JSON-serialized string.

Return JsonValue This class is an abstract base class.