We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4f4969 commit 6058a27Copy full SHA for 6058a27
1 file changed
unirec2json/unirec2json.py
@@ -79,7 +79,9 @@ def apply_mappings(data, mapping):
79
trap.sendFlush(0)
80
break
81
rec.setData(data)
82
- d = apply_mappings(rec.getDict(), mapping)
+ d = rec.getDict()
83
+ if mapping:
84
+ d = apply_mappings(d, mapping)
85
j = json.dumps(d, default=default)
86
if options.verbose:
87
print(j)
0 commit comments