How to compress json file on May 19, 2023 with No comments For a single file use this: jq -c . all_json_words.json > minify_words.jsonto use it in a for loopfor file in *.json; do jq -c . "$file" > "${file%.json}.min.json"done Share: Email ThisBlogThis!Share to XShare to Facebook
0 Comments:
Post a Comment