Ask Your Question

Revision history [back]

tshark api to generate json from pcap

For my use case, i need to derive and process the json output of pcaps. today, for each pcap, i run a new instance of tshark to generate the json for each pcap. this works but i'm looking to streamline this. Is there a tshark api/library that i can instead call where i pass tshark a pcap and get a json object back without having to fork/exec a tshark process?

thanks