• Deserialize a payload from the network and return it as a JSONRPC message or array of messages. Note that all null values from the payload will be converted into undefined values except for result values in JSONRPCSuccessResponse messages. A null value as the response to a request must not be converted to undefined per the JSONRPC protocol.

    After a request has been processed by the protocol stack, call fixupResponse to restore undefined responses.

    Parameters

    • payload: string

    Returns JSONRPCRequest | JSONRPCResponse | (JSONRPCRequest | JSONRPCResponse)[]