MCPcopy Create free account
hub / github.com/Snapchat/Valdi / valueToJsonString

Function valueToJsonString

valdi_core/src/valdi_core/cpp/Utils/ValueUtils.cpp:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::string valueToJsonString(const Value& value) {
94 auto json = valueToJson(value);
95 auto stringView = std::string_view(reinterpret_cast<const char*>(json->data()), json->size());
96 return std::string(stringView);
97}
98
99void writeValueToJSONWriter(const Value& value, JSONWriter& writer) {
100 switch (value.getType()) {

Callers 3

submitMessageToHermesMethod · 0.85
stopProfilingMethod · 0.85
getJsonListMethod · 0.85

Calls 3

valueToJsonFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected