api.getJsonValue()
Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously
Parameters
GetJsonValueParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
json | string | The JSON-serialized string |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'getJsonValue' | 'error'
airgram: Airgram
request: {
method: 'getJsonValue'
params: GetJsonValueParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}