JSON RPC
JSON-RPC 2.0 library for C++
|
Functions | |
bool | is_valid_request_id (const nlohmann::json &id) |
Checks if the provided JSON value is a valid JSON RPC request ID. | |
bool anonymous_namespace{dispatcher_p.cpp}::is_valid_request_id | ( | const nlohmann::json & | id | ) |
Checks if the provided JSON value is a valid JSON RPC request ID.
id | The JSON value to check. |
true
if the JSON value is a valid request ID, false
otherwise.This function checks if the provided JSON value is a valid JSON RPC request ID. According to the JSON RPC specification, a valid request ID can be a string, a number, or null. Additionally, this function also considers a discarded JSON value as valid.
Definition at line 29 of file dispatcher_p.cpp.