Created
September 5, 2018 10:57
-
-
Save benwei/be767414b02975520380f9ea3913d921 to your computer and use it in GitHub Desktop.
test json with jq command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jq tool: https://github.com/stedolan/jq | |
$ echo '[{"a":"2"}]' | jq '.[]' | |
{ | |
"a": "2" | |
} | |
$ echo '[{"a":"2"}]' | jq '.[] | .["a"]' | |
"2" | |
# view with online tool jqplay | |
## https://jqplay.org/s/OrtlyrkIyg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment