MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / json_optional_float

Function json_optional_float

app/cli/request.cpp:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 std::unordered_map<std::string, std::string> options;
80 if (value == nullptr || value->is_null()) {
81 return options;
82 }
83 for (const auto & [key, child] : value->as_object()) {
84 options[key] = json_option_string(child);
85 }
86 return options;
87}
88
89std::optional<std::string> json_optional_string(
90 const engine::io::json::Value & object,
91 const std::string & key) {
92 const auto * value = object.find(key);

Callers 1

build_request_from_jsonFunction · 0.85

Calls 3

is_nullMethod · 0.80
as_f32Method · 0.80
findMethod · 0.45

Tested by

no test coverage detected