0
    {
      "data": [
        {
          "id": "52fb62dc-a446-4fbb-9c7e-e75d8c90f6d9",
          "name": "abx",
          "address": {
            "address1": "New Address 1",
            "address2": "New Address 2",
            "Pin":"800001"
          }
        },
        {
          "id": "52fb62dc-a446-4fbb-9c7e-e75d8c90f6d9",
          "name": "xyz",
          "address": {
            "address1": "New Address 1",
            "address2": "New Address 2",
            "Pin":"800002"
          }
        },
        {
          "id": "52fb62dc-a446-4fbb-9c7e-e75d8c90f6d9",
          "name": "ijk",
          "address": {
            "address1": "New Address 1",
            "address2": "New Address 2",
            "Pin":"800003"
          }
        }
      ]
    }

出力jsonは次のようになります

    [
      {
        "name": "abx",
        "Pin": "800001"
      },
      {
        "name": "xyz",
        "Pin": "800002"
      },
      {
        "name": "ijk",
        "Pin": "800003"
      }
    ]

入力jsonから、次を使用してすべての値を抽出したい

jpath

Name Path = "data.name" Pin Path = "data.address.pin"

すべての値が必要です。出力 json を作成します。

4

1 に答える 1