JSON-RPC
JSON-RPC is a lightweight protocol for remote procedure calls that encodes requests and responses in JSON.
JSON-RPC is a protocol for remote procedure calls, in which one program invokes a function in another, with messages encoded in JSON. A request carries the method name, its parameters and an identifier, and a response carries either a result or an error. Version 2.0 is the widely used edition.
Because it is not tied to a particular transport, it can run over HTTP, WebSocket or standard input and output. The Language Server Protocol used by developer tools and the Model Context Protocol for connecting AI tools both use it.
This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.