MCPcopy Create free account
hub / github.com/MITK/MITK / ParseJsonObject

Function ParseJsonObject

Modules/CppMicroServices/src/usModuleManifest.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 void ParseJsonObject(const json& jsonObject, AnyMap& anyMap)
66 {
67 for (const auto& [key, jsonValue] : jsonObject.items())
68 {
69 Any anyValue = ParseJsonValue(jsonValue);
70 if (!anyValue.Empty())
71 {
72 anyMap.insert(std::make_pair(key, anyValue));
73 }
74 }
75 }
76
77 void ParseJsonArray(const json& jsonArray, AnyVector& anyVector)
78 {

Callers 2

ParseJsonValueFunction · 0.85
ParseMethod · 0.85

Calls 2

ParseJsonValueFunction · 0.85
EmptyMethod · 0.80

Tested by

no test coverage detected