Skip to content

Commit

Permalink
Update 2023-11-08-fun-with-jq.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbreaux committed Mar 26, 2024
1 parent a003323 commit 89ff173
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _posts/2023-11-08-fun-with-jq.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ title: Parsing JSON with jq

Albeit perhaps a bit cryptic in syntax (much like regex). But there's also this fantastic playground at [jqplay.org](https://jqplay.org/) for testing options and producing the command syntax for you.

(Side note, if you're on Windows and have installed Git for Windows, `jq` is part of the install!)

### Selecting fields from an array

My particular need was to get the results of an API call that produces an array of "allowed" values for a data field - Country codes in this case - and convert that into a list of name-value pairs for use elsewhere.
Expand Down Expand Up @@ -56,4 +54,4 @@ Output like:
```properties
AF=Afghanistan
AX=Aland Islands
```
```

0 comments on commit 89ff173

Please sign in to comment.