MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / is_valid_json_response

Function is_valid_json_response

tests/test_mcp.c:19353–19363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19351}
19352
19353static bool is_valid_json_response(const char *json) {
19354 if (!json) {
19355 return false;
19356 }
19357 yyjson_doc *doc = yyjson_read(json, strlen(json), 0);
19358 if (!doc) {
19359 return false;
19360 }
19361 yyjson_doc_free(doc);
19362 return true;
19363}
19364
19365static bool snippet_source_has_replacement(const char *json) {
19366 yyjson_doc *doc = yyjson_read(json, strlen(json), 0);

Callers 1

test_mcp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected