MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / toJsonValue

Method toJsonValue

src/jsonrpccpp/common/specificationwriter.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace jsonrpc;
18
19Json::Value SpecificationWriter::toJsonValue(const vector<Procedure> &procedures) {
20 Json::Value result;
21 Json::Value row;
22 for (unsigned int i = 0; i < procedures.size(); i++) {
23 procedureToJsonValue(procedures.at(i), row);
24 result[i] = row;
25 row.clear();
26 }
27 return result;
28}
29std::string SpecificationWriter::toString(const vector<Procedure> &procedures) {
30 Json::StreamWriterBuilder wb;
31 wb["indentation"] = " ";

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected