MCPcopy Create free account
hub / github.com/antvis/F2Native / Get

Function Get

core/graphics/util/json.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49nlohmann::json Get(const nlohmann::json &obj, const std::string &key) {
50 if(obj.is_object() && obj.contains(key)) {
51 return obj[key];
52 } else {
53 return nlohmann::json();
54 }
55}
56
57const std::string GetString(const nlohmann::json &obj, const std::string &key, const std::string &def) {
58 if(obj.is_object() && obj.contains(key) && obj[key].is_string()) {

Callers 9

ParseObjectMethod · 0.85
ScaleControllerClass · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
GetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected