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

Function graphStructToJson

libchigraph/src/JsonSerializer.cpp:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115nlohmann::json graphStructToJson(const GraphStruct& struc) {
116 nlohmann::json ret = nlohmann::json::array();
117
118 for (const auto& elem : struc.types()) {
119 ret.push_back({{elem.name, elem.type.qualifiedName()}});
120 }
121
122 return ret;
123}
124
125} // namespace chi

Callers 1

graphModuleToJsonFunction · 0.85

Calls 1

qualifiedNameMethod · 0.45

Tested by

no test coverage detected