1. 首页
  2. 考试认证
  3. 其它
  4. jsonget 用于从JSON中提取值的命令行工具

jsonget 用于从JSON中提取值的命令行工具

上传者: 2024-08-31 06:24:28上传 ZIP文件 154KB 热度 6次
获取jsonget是一个命令行工具,用于从JSON中提取值。这很有用,例如,当您curl JSON api并且只想从中获取单个值时: % curl http://openweathermap.org/data/2.0/weather/city/524901 | jsonget main.temp 259.92或多个换行符分隔的值: % curl http://openweathermap.org/data/2.0/weather/city/524901 | jsonget name main.temp wind.speed Moscow 259.92 2安装go get github.com/stvp/jsonget用法鉴于my.json : { " foo " : true , " bar " : { " baz " : 5 }, "
下载地址
用户评论