curl http://testhost.test.com:8080/application/app/version | jq '.version' | jq '.[]'
上面的命令仅输出以下值:
"madireddy@test.com"
"2323"
"test"
"02-03-2014-13:41"
"application"
我如何像下面这样获取键名:
email
versionID
context
date
versionName
像这样 。Anubhava..version:{“ Archiver-Version”:“ Plexus Archiver”,“ Build-Id”:“”,“ Build-Jdk”:“ 1.7.0_07”,“ Build-Number”:“”,“ Build-标记”:“”,“按构建”:“ cporter”,“创建按”:“ Apache Maven”,“实施标题”:“ northstar”,“实施供应商ID”:“ com.test”。 testPack”,“ Implementation-Version”:“ testBox”,“ Manifest-Version”:“ 1.0”,“ appname”:“ testApp”,“ build-date”:“ 02-03-2014-13:41”,“版本”:“ testBox”,
您能否添加来自API并输入到的示例数据
—
卡尔·G
jq
?