Javascript – Removing empty values, casting strings to bools and trimming whitespace recursively in JSON with jq – how to optimize?
As part of data preprocessing I need to remove all empty values from an input JSON like empty arrays [], empty objects {}, empty strings ""/" "/"t", objects with empty keys {"":5} and I need to do that recursively. I…