Nifi的震动规格-删除属性

我是nifi的新人。我正在尝试使用JoltTransformJSON删除某些属性(例如瑞典语和中文的名称,描述中的图像等),并获得``有限的''成功。请你帮助我好吗?提前谢谢了! 艾丽西亚

详细信息如下: JoltTransformJSON属性设置:

Jolt Transformation DSL: Remove
Jolt Specification: {"name": {"sv": "","zh": ""},"source_type": "","description": {"image": {"url": "","copyright_holder":"","license_type": ""}}}

所有属性

  {
    "id": "string","name": {
      "fi": "string","en": "string","sv": "string","zh": "string"
    },"source_type": {},"info_url": "string","modified_at": "2019-12-27T16:34:17.896Z","location": {
      "lat": {},"lon": {},"address": {
        "street_address": "string","postal_code": "string","locality": "string"
      }
    },"description": {
      "intro": "string","body": "string","images": [
        {
          "url": "string","copyright_holder": "string","license_type": {}
        }
      ]
    },"tags": [
      {
        "id": "string","name": "string"
      }
    ],"where_when_duration": {
      "where_and_when": "string","duration": "string"
    }
  }
]```




caowei5323013 回答:Nifi的震动规格-删除属性

根据您的预期结果,您想要的震动规格为:

{
  "name": {
    "sv": "","zh": ""
  },"source_type": "","description": {
    "images": ""
  }
}
本文链接:https://www.f2er.com/2851926.html

大家都在问