【发布时间】:2020-08-23 15:17:08
【问题描述】:
我需要解决一个困难的 Jolt。有人可以帮忙吗?
{
"results": {
"data": [
{
"name": "xx",
"typeRelationship": [
{
"relationship": "parent",
"type": {
"id": "yyyyy",
}
}
],
"id": "xxxxxxxx"
},
{
"name": "yy",
"typeRelationship": [
{
"relationshipType": "parent",
"type": {
"id": "CCCC"
}
},
{
"relationshipType": "child",
"service": {
"id": "DDDD"
}
},
{
"relationshipType": "child",
"service": {
"id": "xxxxxxxx"
}
}
],
"id": "yyyyy"
}
]
}
}
所有我需要发生的事情,一个 JOLT 来根据这个条件进行过滤: results.data.typeRelationship.type.id = xxxxxxxx
所以结果应该过滤并显示:
{
"rows" : [ {
"rowdata" : {
"relationshipType" : "child",
"Name" : "yy",
"id" : "yyyyy"
}
} ]
}
【问题讨论】:
标签: jolt