{
  "id": "enwiki-001361233880",
  "slug": "json-rpc",
  "title": "JSON-RPC",
  "qid": "",
  "lead": "JSON-RPC (JavaScript Object Notation-Remote Procedure Call) is a JSON-based wire protocol for remote procedure calls (RPC). It is similar to the XML-RPC protocol, defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple calls to be sent to the server which may be answered asynchronously. The JSON-RPC protocol is transport-independent and can be carried over many different data transport protocols, including file descriptor I/O, HTTP and TCP. It does not directly provide any support for authentication or authorization.",
  "body": "JSON-RPC (JavaScript Object Notation-Remote Procedure Call) is a JSON-based wire protocol for remote procedure calls (RPC). It is similar to the XML-RPC protocol, defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple calls to be sent to the server which may be answered asynchronously. The JSON-RPC protocol is transport-independent and can be carried over many different data transport protocols, including file descriptor I/O, HTTP and TCP. It does not directly provide any support for authentication or authorization. --> {\"jsonrpc\": \"2.0\", \"method\": \"subtract\", \"params\": {\"minuend\": 42, \"subtrahend\": 23}, \"id\": 3} Notification (no response, and no id): --> {\"jsonrpc\": \"2.0\", \"method\": \"update\", \"params\": [1,2,3,4,5]} Parse error: --> {\"jsonrpc\": \"2.0\", \"method\": \"subtract\", \"params\": Invalid Request: --> {\"jsonrpc\": \"2.0\", \"method\": 1, \"params\": \"bar\"} Method not found: --> {\"jsonrpc\": \"2.0\", \"method\": \"foobar\", \"id\": 1} Invalid params: --> {\"jsonrpc\": \"2.0\", \"method\": \"subtract\", \"params\": {\"minuend\": 42}, \"id\": 2} Internal error: --> {\"jsonrpc\": \"2.0\", \"method\": \"getData\", \"params\": [], \"id\": 4} Batch request with errors: --> [ {\"jsonrpc\": \"2.0\", \"method\": \"subtract\", \"params\": [42, 23], \"id\": 1}, {\"jsonrpc\": \"2.0\", \"method\": \"foobar\", \"id\": 2}, {\"foo\": \"bar\"} ] --> {\"version\": \"1.1\", \"method\": \"confirmFruitPurchase\", \"params\": [[\"apple\", \"orange\", \"mangoes\"], 1.123], \"id\": \"194521489\"} --> {\"method\": \"echo\", \"params\": [\"Hello JSON-RPC\"], \"id\": 1}",
  "categories": [
    "23603337",
    "26220375",
    "29669166",
    "47150534",
    "62888473"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1361233880",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1782481948.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001361233880",
    "type": "webpage",
    "title": "JSON-RPC",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/json-rpc",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          21
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001361233880",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1361233880",
    "note": "Immutable snapshot enwiki-001361233880"
  }
}