""" This script serializes the entire traffic dump, including websocket traffic, as JSON, and either sends it to a URL or writes to a file. The serialization format is optimized for Elasticsearch; the script can be used to send all captured traffic to Elasticsearch directly. Usage: mitmproxy --mode reverse:http://example.com/ -s examples/complex/jsondump.py Configuration: Send to a URL: cat > ~/.mitmproxy/config.yaml < ~/.mitmproxy/config.yaml <