How to format large json file

wk
Sep 21, 2021

Using jq

$ jq '.' b.json > c.json

Output

$ ls -lh *.json
-rw-r--r--@ 1 wk staff 824M Sep 21 13:06 b.json
-rw-r--r-- 1 wk staff 1.0G Sep 21 13:13 c.json

--

--