Wireshark-bugs: [Wireshark-bugs] [Bug 11754] Add JSON as an output format
Date: Sun, 12 Jun 2016 18:51:13 +0000

Comment # 5 on bug 11754 from
(In reply to Dario Lombardo from comment #4)
> Start from wiretap dir. A partial Json support is already present. You should
> 
> 1) evaluate if libjsmn is enough for what you need and switch to another
> library if it is not
> 2) define a Json format for packets that resembles pcap/pidml
> 3) change the Json support to read such a files
> 4) change the Json support to write them
> 
> That should do the work.

That sounds like a description of how to make JSON into a capture file format;
we don't support PDML as a capture file format, and I don't think he's asking
for support of JSON as a capture file format.

To support JSON as a *packet dissection* output format, the way we support PDML
as a packet dissection output format, look at the "_pdml" routines in
epan/print.c, add similar routines for JSON, and use them in file.c, tfshark.c,
and tshark.c in a similar way to which the _pdml routines are used, with a new
"-T json" option in TShark/TFShark and new GUI options in Wireshark.


You are receiving this mail because:
  • You are watching all bug changes.