Type alias IParsedObject

Takes a JSON-RPC 2.0 payload (String) and tries to parse it into a JSON. If successful, determine what object is it (response, notification, success, error, or invalid), and return it's type and properly formatted object.

Param

Returns

an array, or an object of this format:

{ type: <Enum, 'request'|'notification'|'success'|'error'|'invalid'> payload: <JsonRpc|JsonRpcError> }

Api

public