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

Function json_entry_array

plugins/traffic_dump/json_utils.cc:154–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154std::string
155json_entry_array(std::string_view name, std::string_view value)
156{
157 return std::string{"[\""} + escape_json(name) + "\",\"" + escape_json(value) + "\"]";
158}
159
160std::string
161escape_json(std::string_view s)

Callers 3

test_json_utils.ccFile · 0.85

Calls 1

escape_jsonFunction · 0.70

Tested by

no test coverage detected