Chicken’s Blog ^_^

(Just code for food)

Command-line JSON Processor

| Comments

jq is a command-line JSON processor.

If you want to learn to use jq, read the documentation at http://stedolan.github.io/jq. This documentation is generated from the docs/ folder of this repository. You can also try it online at http://jqplay.org.

Basic filters

Example1exemple
1
2
3
jq '.'
Input "Hello, world!"
Output    "Hello, world!"
Example2exemple
1
2
3
jq '.foo'
Input {"foo": 42, "bar": "less interesting data"}
Output    42

More details please check it out from original website

Original websiteoriginal website
1
http://stedolan.github.io/jq/manual/ 

Next post, I’d like to use this for parser the aws result. (coming soon.)

Comments