json_rpc

From Talleo Wiki
Revision as of 08:39, 25 March 2020 by Mika (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"
}

See also