官术网_书友最值得收藏!

jq

jq is a lightweight tool for processing and transforming JSON. It follows the Unix philosophy of doing one thing and doing it well. It can be found at https://stedolan.github.io/jq/.

While jq and JMESPath are similar, jq is a lot easier to get started with. It also supports transforming JSON into plaintext; JMESPath queries will always return more JSON.

You can pipe JSON results from the CLI tool to it, and easily transform the results for use elsewhere. This example uses jq's property name selectors to convert JSON output to text:

$ aws ec2 describe-availability-zones --output json | jq '.AvailabilityZones[].ZoneName'
"us-east-1a"
"us-east-1c"
"us-east-1d"
"us-east-1e"
主站蜘蛛池模板: 宁阳县| 枝江市| 江北区| 甘孜县| 武宁县| 中江县| 噶尔县| 河津市| 客服| 神木县| 南部县| 苍山县| 邵东县| 墨竹工卡县| 鞍山市| 绥滨县| 文水县| 哈密市| 莱阳市| 新沂市| 佛教| 镇巴县| 中牟县| 海口市| 云龙县| 三门峡市| 北票市| 仁怀市| 汉沽区| 广昌县| 包头市| 赣州市| 建水县| 阿克苏市| 三明市| 平顶山市| 舟曲县| 会昌县| 盘山县| 江都市| 宜阳县|