Expand description
JSON-RPC 2.0 implementation
This module provides types and utilities for working with JSON-RPC 2.0 protocol. It implements the core JSON-RPC 2.0 objects as defined in the specification, including requests, notifications, and responses.
The main type is JsonRpc
which represents all possible JSON-RPC message types.
Helper methods are provided for creating and parsing JSON-RPC messages.
Structs§
- Error
- JSON-RPC 2.0 Error Response object
- Notification
- JSON-RPC 2.0 Notification object
- Request
- JSON-RPC 2.0 Request object
- Success
- JSON-RPC 2.0 Success Response object
Enums§
- Id
- An identifier established by the Client that MUST contain a String, Number, or NULL value if included. If it is not included it is assumed to be a notification. The value SHOULD normally not be Null and Numbers SHOULD NOT contain fractional parts
- JsonRpc
- JSON-RPC 2.0 Request object and Response object JSON-RPC 2.0 Specification.
- Params
- A Structured value that holds the parameter values to be used during the invocation of the method. This member MAY be omitted.