MCPcopy Create free account
hub / github.com/apache/trafficserver / escape_json

Function escape_json

plugins/traffic_dump/json_utils.cc:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160std::string
161escape_json(std::string_view s)
162{
163 std::ostringstream o;
164 esc_json_out(s.data(), s.length(), o);
165 return o.str();
166}
167
168std::string
169escape_json(char const *buf, int64_t size)

Callers 3

json_entryFunction · 0.70
json_entry_arrayFunction · 0.70
write_content_nodeMethod · 0.70

Calls 4

esc_json_outFunction · 0.85
dataMethod · 0.45
lengthMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected