JSONRPC2 v1.0.0 JSONRPC2.Response

JSON-RPC 2.0 Response object utilites.

Summary

Functions

Deserialize the given response using serializer

Returns a tuple containing the information contained in response

Types

id_and_response()
id_and_response() :: {JSONRPC2.id | nil, {:ok, any} | {:error, code :: integer, message :: String.t, data :: any}}

Functions

deserialize_response(response, serializer)
deserialize_response(String.t, module) ::
  {:ok, id_and_response} |
  {:error, any}

Deserialize the given response using serializer.

id_and_response(response)
id_and_response(map) :: {:ok, id_and_response} | {:error, any}

Returns a tuple containing the information contained in response.