It doesn't look like that's enough. A MIME file type is read by
wiretap/mime-file.c, and it appears to look for a magic string at the beginning
of the file to decide it's a mime file type. Since a json file won't match any
of those magic strings, the file won't be opened as a mime file type.
I
Hi list,
Now that the json dissector has became heuristic, I was trying to make
wireshark open a native json file, like it is able to do it with xml.
What is necessary to make it work other than add a line like
heur_dissector_add("wtap_file", dissect_json_heur, proto_json);
in the json dissector