You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in tshark.py, _duplicate_object_hook is defined and declared to "Make lists out of duplicate keys". However, it doesn't make lists out of duplicate keys:
def_duplicate_object_hook(ordered_pairs):
"""Make lists out of duplicate keys."""json_dict= {}
forkey, valinordered_pairs:
existing_val=json_dict.get(key)
ifnotexisting_val:
json_dict[key] =valelse:
# There are duplicates without any data for some reason, if it's that - drop it# Otherwise, overrideifval.get("properties") != {}:
json_dict[key] =valreturnjson_dict
This was introduced in 862e4a6 -- which doesn't have enough in the git commit message to explain why it is done this way.
The text was updated successfully, but these errors were encountered:
The JSON syntax does not impose any restrictions on the strings used as names, does not require that name strings be unique, and does not assign any significance to the ordering of name/value pairs. These are all semantic considerations that may be defined by JSON processors or in specifications defining specific uses of JSON for data interchange
in
tshark.py
,_duplicate_object_hook
is defined and declared to "Make lists out of duplicate keys". However, it doesn't make lists out of duplicate keys:This was introduced in 862e4a6 -- which doesn't have enough in the git commit message to explain why it is done this way.
The text was updated successfully, but these errors were encountered: