January 2019
Intermediate to advanced
520 pages
14h 32m
English
The JSON-RPC protocol uses JSON messages in the following format for a request:
{"jsonrpc": "2.0", "method": "substring", "params": [2, 6, \"string\"], "id": 1}
The preceding JSON message calls the substring remote method of a server that can return a result like this:
{"jsonrpc": "2.0", "result": "ring", "id": 1}
It's worth nothing that a client determines the identifier of the request and has to track those values. Servers are ID-agnostic and they use a connection to track requests.
There are two versions of the protocol—1.0 and 2.0. They are similar, but in the second version there is a separation of the client and the server. Also, it is transport independent, because the first version uses connection events to determine ...
Read now
Unlock full access