JSON RPC 2.0 protocol is used for client-server communication, but:
params
is always json object(never array)- server to client notifications are treated as Events
the apis include some of the following fields:
{
"jsonrpc" : "2.0",
"method": "...",
"id": "...",
"params": { },
"error" : { },
"result" : { }
}
these fields are part of the protocol so they are not documented.
The order is respected
Message fragments MUST be delivered to the recipient in the order sent by the sender.
Helpful Sources