json_rpc
json_rpc is protocol for communicating with RPC servers using JSON-encoded associative arrays.
Input
Argument | Mandatory | Description | Format | Example |
---|---|---|---|---|
jsonrpc | yes | Version of request | string | "2.0" |
method | yes | json_rpc method | string | "save" |
password | no | RPC server password | string | "password" |
params | no | Request parameters | JSON object | {} |
id | yes | Sequential request ID | string | "1" |
Example
{ "jsonrpc": "2.0", "method": "save", "password": "password", "params": {}, "id": "1" }