json-tidy: remove empty maps and sets; allow file arguments