|
Size: 1344
Comment:
|
Size: 1503
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| <<TableOfContents(2)>> |
|
| Line 5: | Line 7: |
| {{{#!highlight bash | {{{#!highlight sh |
| Line 53: | Line 55: |
cat test2.json | jq '.data' | sed 's/\"//g' |
|
| Line 72: | Line 77: |
| curl https://www.tronalddump.io/random/quote 2>/dev/null | jq ".value" | sed s/\"//g |
jq
jq is a lightweight and flexible command-line JSON processor.
Slackbuild
Change values
test.json
test2.json
Get value from key
Curl JSON replay example
* curl http://api.icndb.com/jokes/random 2>/dev/null | json_reformat
