【发布时间】:2018-09-08 10:07:22
【问题描述】:
我有以下 JSON 输出:
{
"201110131738QP27N": {
"parent": 17,
"name": "CentralServer",
"status": "Active",
"count": 6
},
"201803271459ICV69": {
"name": "subaccount1",
"status": "Active",
"count": 1
},
"2018032715008ZM2G": {
"name": "subaccount2",
"status": "Active",
"count": 1
},
"201803281536PSKR4": {
"name": "Este e um teste",
"status": "Active"
}
}
我只尝试获取以下数据:
201110131738QP27N
201803271459ICV69
2018032715008ZM2G
201803281536PSKR4
为了得到想要的数据,我正在尝试使用jq命令,但是目前还没有成功。
【问题讨论】:
-
嗨,欢迎来到 Stack Overflow。您提到您使用
jq尝试了此任务,但您没有提供您的尝试。您能否更新您的问题以显示您的尝试?