Using Pyshark to pair key and value from JSON packet
问题 I am trying to parse a PCAP file using Pyshark. Some of the packets have JSON in them and I am trying to print them out with matching key:value. This is what I have at the moment for testing: import pyshark packets = pyshark.FileCapture('cap.pcapng') pack = packets[1] #get the packet that has JSON print(pack.json.get_field_value('app') When doing this, I get None printed. If I print the entire JSON layer I get data like this: Object Member Key: anonymousId String value: f268204c-5719-43ce