Tshark output single line json
I want to live analyze packets captured with tshark in python.
tshark -i <interface> -T ek -l
Is pretty close to what I need. The problem is the naming. I get much better results with -T json but the results are not a single line for a single packet.
So before writing complicated logic to parse -T json output, I wanted to ask for any other ideas.