[librecat-dev] Vacuum fix on keys?
Peil, Vitali
vitali.peil at uni-bielefeld.de
Wed Sep 13 14:34:42 CEST 2023
Hi all,
I came across some bad data ;-). Tried to fix this with the vacuum fix. The data I have includes empty field names which I want to clean.
with the vacuum fix:
$ echo '[{"ok": 1, "empty": "", "":"some bad data"}]' | catmandu convert to JSON --fix "vacuum()"
Output: [{"":"some bad data","ok":1}]
but I would expect as output
[{"ok":1}]
Is this a bug in the vacuum fix? Is there another way doing this?
Best,
Vitali
More information about the librecat-dev
mailing list