MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / value_to_json

Function value_to_json

subprojects/llama.cpp/common/jinja/value.cpp:1300–1305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1298}
1299
1300std::string value_to_json(const value & val, int indent, const std::string_view item_sep, const std::string_view key_sep) {
1301 std::ostringstream oss;
1302 value_to_json_internal(oss, val, 0, indent, item_sep, key_sep);
1303 JJ_DEBUG("value_to_json: result=%s", oss.str().c_str());
1304 return oss.str();
1305}
1306
1307// TODO: avoid circular references
1308std::string value_to_string_repr(const value & val) {

Callers 3

print_varsMethod · 0.85
tojsonFunction · 0.85
value_to_string_reprFunction · 0.85

Calls 2

value_to_json_internalFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected