JSON-RPC 2.0 encode/decode utilities.
Pure functions for parsing incoming requests and building responses.
Summary
Functions
Decode a JSON-RPC 2.0 request from parsed body params (map).
Build a JSON-RPC 2.0 error response.
Returns true if the request is a notification (no id field).
Build a successful JSON-RPC 2.0 response.
Functions
Decode a JSON-RPC 2.0 request from parsed body params (map).
Returns {:ok, request} or {:error, response}.
Build a JSON-RPC 2.0 error response.
Returns true if the request is a notification (no id field).
Build a successful JSON-RPC 2.0 response.