foramt file with jq 1

foramt file with jq

cat names.json | jq '.' | less

Here is what the above code is Doing:
1. We’re using the cat command to read the contents of the names.json file.
2. We’re piping the output of the cat command to the jq command.
3. We’re using the jq command to pretty print the JSON data.
4. We’re piping the output of the jq command to the less command.
5. We’re using the less command to display the output of the jq command.

Similar Posts