MCPcopy
hub / github.com/mitmproxy/mitmproxy / _json_dumps

Method _json_dumps

mitmproxy/tools/web/app.py:420–421  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

418
419 @staticmethod
420 def _json_dumps(d):
421 return json.dumps(d, ensure_ascii=False).encode("utf8", "surrogateescape")
422
423
424class ClientConnection(WebSocketEventBroadcaster):

Callers 4

broadcastMethod · 0.80
broadcast_flow_resetMethod · 0.80
_broadcast_flowMethod · 0.80
update_filterMethod · 0.80

Calls 2

dumpsMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected