MCPcopy Create free account
hub / github.com/chigraph/chigraph / toJSON

Method toJSON

libchigraph/src/LangModule.cpp:245–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 nlohmann::json toJSON() const override {
246 nlohmann::json ret = nlohmann::json::object();
247
248 auto& data = ret["data"];
249 data = nlohmann::json::array();
250 for (auto& pair : dataInputs()) {
251 data.push_back({{pair.name, pair.type.qualifiedName()}});
252 }
253
254 auto& exec = ret["exec"];
255 exec = nlohmann::json::array();
256 for (auto& name : execInputs()) { exec.push_back(name); }
257
258 return ret;
259 }
260};
261
262struct StringLiteralNodeType : NodeType {

Callers

nothing calls this directly

Calls 1

qualifiedNameMethod · 0.45

Tested by

no test coverage detected