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"
            }
          },"service": {
              "id": "xxxxxxxx"
            }
          }
        ],"id": "yyyyy"
      }
    ]
  }}

预期: 这是预期的:

{
  "data" : [ {
    "id" : "xxxx","href" : "xxxxxx","relation":"parent"
  } ]
}

由于某种原因,我需要输入内容,这样它才能让我更新!!!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)