Arrays 从JSON数组中提取数据,并与非数组的父属性合并

Arrays 从JSON数组中提取数据,并与非数组的父属性合并,arrays,json,arraylist,apache-nifi,Arrays,Json,Arraylist,Apache Nifi,我有以下JSON { "ARTGEntryJsonResult": { "AnnualChargeExemptWaverDate": null "Conditions": [ "" ], "ConsumerInformation": { "DocumentLink": "" }, "EntryType": "Medicine", "LicenceClass": "", "LicenceId": "1525

我有以下JSON

{
  "ARTGEntryJsonResult": {
    "AnnualChargeExemptWaverDate": null
    "Conditions": [
      ""
    ],
    "ConsumerInformation": {
      "DocumentLink": ""
    },
    "EntryType": "Medicine",
    "LicenceClass": "",
    "LicenceId": "152567"
    },
    "Products": [
      {
        "AdditionalInformation": [],
        "Components": [
          {
            "DosageForm": "Drug delivery system, transdermal",
            "RouteOfAdministration": "Transdermal",
            "VisualIdentification": "Dull, homogenous"
          }
        ],
        "Containers": [
          {
            "Closure": "",
            "Conditions": [
              "Store at room temperature"
            ],
            "LifeTime": "2 Years",
            "Material": null,
            "Temperature": "Store below 25 degrees Celsius",
            "Type": "Sachet"
          }
        ],
        "EffectiveDate": "2017-09-18",
        "GMDNCode": "",
        "GMDNTerm": "",
        "Ingredients": [
          {
            "Name": "Fentanyl",
            "Strength": "6.3000 mg"
          }
        ],
        "Name": "FENTANYL SANDOZ ",
        "Packs": [
          {
            "PoisonSchedule": "(S8) Controlled Drug",
            "Size": "1"
          },
          {
            "PoisonSchedule": "(S8) Controlled Drug",
            "Size": "10"
          },
          {
            "PoisonSchedule": "(S8) Controlled Drug",
            "Size": "2"
          },
          {
            "PoisonSchedule": "(S8) Controlled Drug",
            "Size": "3"
          },
          {
            "PoisonSchedule": "(S8) Controlled Drug",
            "Size": "4"
          },
          {
            "PoisonSchedule": "(S8) Controlled Drug",
            "Size": "5"
          },
          {
            "PoisonSchedule": "(S8) Controlled Drug",
            "Size": "7"
          },
          {
            "PoisonSchedule": "(S8) Controlled Drug",
            "Size": "8"
          }
        ],
        "SpecificIndications": [
          "Management of chronic pain requiring opioid analgesia."
        ],
        "StandardIndications": [],
        "Type": "Single Medicine Product",
        "Warnings": []
      }
    ],

  }
}
我可以使用splitJson+EvaluateJsonPath提取它,但是我在一行中获取数组字段数据

考虑到这个JSON文件,我获得了以下示例:

许可证ID名称和明细表大小

152567 FENTANYL SANDOZ "(S8) Controlled Drug","(S8) Controlled Drug","(S8) Controlled Drug" 1,10,2
152567 FENTANYL SANDOZ (S8) Controlled Drug 1

152567 FENTANYL SANDOZ (S8) Controlled Drug 10

152567 FENTANYL SANDOZ (S8) Controlled Drug 2
我真正想要的是:

许可证ID名称和明细表大小

152567 FENTANYL SANDOZ "(S8) Controlled Drug","(S8) Controlled Drug","(S8) Controlled Drug" 1,10,2
152567 FENTANYL SANDOZ (S8) Controlled Drug 1

152567 FENTANYL SANDOZ (S8) Controlled Drug 10

152567 FENTANYL SANDOZ (S8) Controlled Drug 2
任何想法都非常感谢


谢谢

我不清楚你想要什么。是否要将json转换为纯文本?不清楚需要什么。是否要将json转换为纯文本?