Package jsonrpc2 is an implementation of the JSON-RPC 2 specification for Go.
This library is a fork of go.lsp.dev/jsonrpc2, which itself is a cleaned-up fork of x/tools/internal/jsonrpc2. The goal is to provide an importable, stdlib-only JSON-RPC 2 library that cherry-picks the best ideas from the Go team's v2 rewrite without the complexity.
LOC note: counts are approximate Go source lines for each implementation, excluding *_test.go. For x/tools, counts are for the internal/jsonrpc2 and internal/jsonrpc2_v2 directories only.
The OpenRPC Specification defines a standard, programming language-agnostic interface description for JSON-RPC 2.0 APIs.