Update why-you-should-learn-jq-in-2024.mdx
cd9fd8ac
1 file(s) · +1 −1
| 86 | 86 | ||
| 87 | 87 | Trying to view this in the terminal can be pretty rough; there's a lot to look at here. That's the case with most APIs, and this one isn't even that complicated. If you were trying to fetch data from the Google books API, it will be almost impossible to navigate. That's where `jq` comes in. |
|
| 88 | 88 | ||
| 89 | - | Let's say I just wanted the first item in the `files[]` array? I can do that with `jq` by [piping](https://www.geeksforgeeks.org/piping-in-unix-or-linux/) the results of the previous command into `jq` like so: |
|
| 89 | + | Let's say I just wanted the first item in the `files[]` array; I can do that with `jq` by [piping](https://www.geeksforgeeks.org/piping-in-unix-or-linux/) the results of the previous command into `jq` like so: |
|
| 90 | 90 | ||
| 91 | 91 | ``` |
|
| 92 | 92 | pinata files list -a 5 | jq .files[0] |