My python program generates multiple json file as output. But those json are not formatted by default . I would like to format them and save it back using cli. Currently I am doing format document option in vscode but that i have to do one by one file.
cat file.json | jq .
The above command displays it but do not know how to save it back to the same file. Also i would like to do it for entire folder.