JSON RPC
JSON-RPC 2.0 library for C++
wwa::json_rpc::jsonrpc_request Struct Reference

Represents a JSON RPC request. More...

#include <dispatcher_p.h>

+ Collaboration diagram for wwa::json_rpc::jsonrpc_request:

Public Attributes

nlohmann::json id
 The ID of the request.
 
std::string jsonrpc
 The JSON RPC version.
 
std::string method
 The name of the method to be invoked.
 
nlohmann::json params
 The parameters for the method.
 

Detailed Description

Represents a JSON RPC request.

This struct holds the components of a JSON RPC request, including the JSON RPC version, method name, parameters, and ID.

See also
https://www.jsonrpc.org/specification#request_object

Definition at line 50 of file dispatcher_p.h.

Member Data Documentation

◆ id

nlohmann::json wwa::json_rpc::jsonrpc_request::id

The ID of the request.

Definition at line 54 of file dispatcher_p.h.

◆ jsonrpc

std::string wwa::json_rpc::jsonrpc_request::jsonrpc

The JSON RPC version.

Definition at line 51 of file dispatcher_p.h.

◆ method

std::string wwa::json_rpc::jsonrpc_request::method

The name of the method to be invoked.

Definition at line 52 of file dispatcher_p.h.

◆ params

nlohmann::json wwa::json_rpc::jsonrpc_request::params

The parameters for the method.

Definition at line 53 of file dispatcher_p.h.


The documentation for this struct was generated from the following file: