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

Function suffixed_json_path

app/workflow/file_sink.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 << "\"id\":" << quote_json(artifact.id)
120 << ",\"kind\":" << quote_json(artifact_kind_name(artifact.kind))
121 << ",\"bytes\":" << artifact.payload.size()
122 << ",\"meta\":{";
123 for (size_t i = 0; i < meta_keys.size(); ++i) {
124 if (i != 0) {
125 out << ",";
126 }
127 const auto & key = meta_keys[i];
128 out << quote_json(key) << ":" << quote_json(artifact.meta.at(key));
129 }
130 out << "},\"payload_hex\":" << quote_json(bytes_to_hex(artifact.payload)) << "}";
131 return out.str();

Callers 1

emit_batch_item_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected