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

Method toJSON

libchigraph/src/LangModule.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 nlohmann::json toJSON() const override {
93 nlohmann::json ret = nlohmann::json::object();
94
95 auto& data = ret["data"];
96 data = nlohmann::json::array();
97 for (auto& pair : dataOutputs()) {
98 data.push_back({{pair.name, pair.type.qualifiedName()}});
99 }
100
101 auto& exec = ret["exec"];
102 exec = nlohmann::json::array();
103 for (auto& name : execOutputs()) { exec.push_back(name); }
104
105 return ret;
106 }
107};
108
109struct ConstIntNodeType : NodeType {

Callers

nothing calls this directly

Calls 1

qualifiedNameMethod · 0.45

Tested by

no test coverage detected