jsonrpcx/json-rpc-cxx

JsonRpc1Server?

dtugend opened this issue · 1 comments

While working on pull request for issue 35 I noticed I could find no JsonRpc 1 compliant server class, but it says here there is one:

- JSON-RPC 1.0 and 2.0 compliant server

json ProcessSingleRequest(json &request) {
if (!has_key_type(request, "jsonrpc", json::value_t::string) || request["jsonrpc"] != "2.0") {
throw JsonRpcException(invalid_request, R"(invalid request: missing jsonrpc field set to "2.0")");
}

Or is it just me dumbing out?

You are totally right, sorry this was a dumb mistake on my end. If you need JSON-RPC 1.0 I would recommend the other framework: libjson-rpc-cpp

Sorry for the confusion. I removed the mentioning from the README.