Airgram

Guides
/
/
Methods

api.getJsonValue()

Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously

Parameters GetJsonValueParams:

NameTypeDescription
jsonstring 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>
}