JSON RPC
JSON-RPC 2.0 library for C++
request.cpp File Reference

Implements the functionality for handling JSON RPC requests. More...

#include "request.h"
#include "exception.h"
#include "utils.h"
+ Include dependency graph for request.cpp:

Go to the source code of this file.

Namespaces

namespace  wwa
 
namespace  wwa::json_rpc
 Library namespace.
 

Functions

static void wwa::json_rpc::from_json (const nlohmann::json &j, jsonrpc_request &r)
 Deserializes a JSON object into a jsonrpc_request structure.
 

Detailed Description

Implements the functionality for handling JSON RPC requests.

This source file contains the implementation of the jsonrpc_request struct's methods. It includes the deserialization of a JSON object into a jsonrpc_request structure and the validation of the JSON RPC request.

The file uses the nlohmann::json library for JSON handling and includes additional headers for exception handling and utility functions.

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

Definition in file request.cpp.