JSON-RPC


RPC
RPCJSON
V8 debugger protocol
Erich Gamma ref

URLRESTURL
method
JSON使
Batch
WebSocket使

REST

request
jsonrpc:
method:
params:
id: idresponse
substract(42, 23)
{
"jsonrpc": "2.0",
"method": "subtract",
"params": [42, 23],
"id": 1
}
response
result:
{
"jsonrpc": "2.0",
"result": 19,
"id": 1
}

Notification
id
使



Go