JOLT规范的后续问题-是否可以根据字典列表的键/值对值进行排序?
添加更多选项如何:
JSON输入:
{
"list": [
{
"tags": [
{
"scope": "",
"tag": "TAG_VM"
},
{
"scope": "",
"tag": "TAG_HOST"
},
{
"scope": "",
"tag": "TAG_ROLE_DNS"
},
{
"scope": "",
"tag": "TAG_ROLE_AD"
},
{
"scope": "",
"tag": "TAG_USER_INSIDE"
},
{
"scope": "",
"tag": "TAG_USER_OUTSIDE"
},{
"scope": "",
"tag": "TAG_INTERNET_TRUE"
}
]
}
],
"result_count": 1,
"sort_by": "name"
}
疾病输出:
{
"role1" : "DNS",
"role2" : "AD",
"user1" : "INSIDE",
"user2" : "OUTSIDE",
"internet" : "TRUE"
}
多谢帮忙!
1条答案
按热度按时间ogq8wdun1#
类似的逻辑将与构建和使用多个独立的数组沿着工作,方法是在这种情况下使其更具动态性,例如