Size: 295
Comment:
|
Size: 723
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
./jq.SlackBuild installpkg /tmp/jq-1.4-i486-1_SBo.tgz }}} * [[attachment:jq-1.4-i486-1_SBo.tgz]] |
|
Line 12: | Line 16: |
== Change values == '''test.json''' {{{#!highlight javascript { "keyx":12, "keyz":"ddff" } |
|
Line 13: | Line 25: |
{{{#!highlight bash jq '.keyx = 55 | .keyz = "otherVal"' test.json # output { "keyx": 55, "keyz": "otherVal" } }}} == Get value from key == {{{#!highlight bash jq '.keyx' test.json # output 12 }}} |
jq
jq is a lightweight and flexible command-line JSON processor.
Slackbuild
Change values
test.json