How to parse nested json array of document in ADF data flow
Hi all
I am trying to fitch the values from a nested josh array of document , I have used aggregate to convert into objects but not able to fitch the values of all child nodes like as below
itOffer.item
itOffer.item.SplOfr
itOffer.item.buy
itOffer.item.lGroup.location.item[]
itOffer.item.zdeal.item[]
itOffer.item.incentive.item[]
required your assistance , please find below
Source :- Inline data set, array of document
Json Array of document
[
{"itOffer":{"item":{"SplOfr":{"TypeCode":null,"From":20210510000000,"buy":{"item":{"avaab":0,"annn":null,"babab":2,"SequenceNr":1,"Amount":".01000","diType":"04"}},"parentOffer":"ag==","To":20210520235959,"offerDesc":"Created for ST 13","offerSetId":"ag==","refEventName":null,"refOfferId":"abcd==","get":{"item":{"gsgs":0,"variantSprof":null,"sghshs":2,"agsg":1,"minAmount":".01000","gshxh":"EA","unitForecast":0}},"limit":0,"refId":"0000000000","lGroup":{"NodeId":"AAAAAAAAAAAAAAAAAAAAAA==","eNodeId":null,"oGroup":null,"exterId":null,"parentId":"AAAAAAAAAAAAAAAAAAAAAA==","parentGroupId":"AAAAAAAAAAAAAAAAAAAAAA==","lHId":"0000000000","location":{"item":[{"offerId":"AAAAAAAAAAAAAAAAAAAAAA==","exterId":"ZST2","loId":"AA062mkBHtujxXcjAoc1fA==","lot":1040},{"offerId":"AAAAAAAAAAAAAAAAAAAAAA==","exterId":1700,"loId":"AA062mkBHtujxXcbt1TVfA==","lot":1040}]},"externalLocationHierarchyDesc":null,"externalLocationHierarchyNodeId":null,"locationHierarchyTypeCode":null,"locationGroupId":"AAAAAAAAAAAAAAAAAAAAAA=="},"promotionType":"DOF","externalLeadingCategoryId":null,"unitOfMeasure":null,"offerSetName":null,"leadingOffer":"AA062mkBHtutql1wc9l2tw==","intExternalOfferId":"000000000000000000000000000000000101","offerTypeCode":1,"retailEventId":null,"forecastTstmp":0,"liftTypeCode":"00","financialCalcRequired":null,"mdSystem":10001,"enforceMultiple":"X","name":"Sample_5","zdeal":{"item":[{"dNumber":"0000006966","term":"21FB2021","vFrom":"20240410000000","vTo":"20240507235959"}]},"incentive":{"item":[{"externalId":"2063828089181","iId":"21FB20210B791EEEB9BE77FC3411ED9E","iPtId":"00000000000000000000000000000000","inCls":"Z3","inTypeCode":"Z31"}]}}}}},
{"itOffer":{"item":{"SplOfr":{"TypeCode":null,"From":20210510000000,"buy":{"item":{"avaab":0,"annn":null,"babab":2,"SequenceNr":1,"Amount":".01000","diType":"04"}},"parentOffer":"ag==","To":20210520235959,"offerDesc":"Created for ST 13","offerSetId":"ag==","refEventName":null,"refOfferId":"abcd==","get":{"item":{"gsgs":0,"variantSprof":null,"sghshs":2,"agsg":1,"minAmount":".01000","gshxh":"EA","unitForecast":0}},"limit":0,"refId":"0000000000","lGroup":{"NodeId":"AAAAAAAAAAAAAAAAAAAAAA==","eNodeId":null,"oGroup":null,"exterId":null,"parentId":"AAAAAAAAAAAAAAAAAAAAAA==","parentGroupId":"AAAAAAAAAAAAAAAAAAAAAA==","lHId":"0000000000","location":{"item":[{"offerId":"AAAAAAAAAAAAAAAAAAAAAA==","exterId":"ZST2","loId":"AA062mkBHtujxXcjAoc1fA==","lot":1040},{"offerId":"AAAAAAAAAAAAAAAAAAAAAA==","exterId":1700,"loId":"AA062mkBHtujxXcbt1TVfA==","lot":1040}]},"externalLocationHierarchyDesc":null,"externalLocationHierarchyNodeId":null,"locationHierarchyTypeCode":null,"locationGroupId":"AAAAAAAAAAAAAAAAAAAAAA=="},"promotionType":"DOF","externalLeadingCategoryId":null,"unitOfMeasure":null,"offerSetName":null,"leadingOffer":"AA062mkBHtutql1wc9l2tw==","intExternalOfferId":"000000000000000000000000000000000101","offerTypeCode":1,"retailEventId":null,"forecastTstmp":0,"liftTypeCode":"00","financialCalcRequired":null,"mdSystem":10001,"enforceMultiple":"X","name":"Sample_5","zdeal":{"item":[{"dNumber":"0000006966","term":"21FB2021","vFrom":"20240410000000","vTo":"20240507235959"}]},"incentive":{"item":[{"externalId":"2063828089181","iId":"21FB20210B791EEEB9BE77FC3411ED9E","iPtId":"00000000000000000000000000000000","inCls":"Z3","inTypeCode":"Z31"}]}}}}},
{"itOffer":{"item":{"SplOfr":{"TypeCode":null,"From":20210510000000,"buy":{"item":{"avaab":0,"annn":null,"babab":2,"SequenceNr":1,"Amount":".01000","diType":"04"}},"parentOffer":"ag==","To":20210520235959,"offerDesc":"Created for ST 13","offerSetId":"ag==","refEventName":null,"refOfferId":"abcd==","get":{"item":{"gsgs":0,"variantSprof":null,"sghshs":2,"agsg":1,"minAmount":".01000","gshxh":"EA","unitForecast":0}},"limit":0,"refId":"0000000000","lGroup":{"NodeId":"AAAAAAAAAAAAAAAAAAAAAA==","eNodeId":null,"oGroup":null,"exterId":null,"parentId":"AAAAAAAAAAAAAAAAAAAAAA==","parentGroupId":"AAAAAAAAAAAAAAAAAAAAAA==","lHId":"0000000000","location":{"item":[{"offerId":"AAAAAAAAAAAAAAAAAAAAAA==","exterId":"ZST2","loId":"AA062mkBHtujxXcjAoc1fA==","lot":1040},{"offerId":"AAAAAAAAAAAAAAAAAAAAAA==","exterId":1700,"loId":"AA062mkBHtujxXcbt1TVfA==","lot":1040}]},"externalLocationHierarchyDesc":null,"externalLocationHierarchyNodeId":null,"locationHierarchyTypeCode":null,"locationGroupId":"AAAAAAAAAAAAAAAAAAAAAA=="},"promotionType":"DOF","externalLeadingCategoryId":null,"unitOfMeasure":null,"offerSetName":null,"leadingOffer":"AA062mkBHtutql1wc9l2tw==","intExternalOfferId":"000000000000000000000000000000000101","offerTypeCode":1,"retailEventId":null,"forecastTstmp":0,"liftTypeCode":"00","financialCalcRequired":null,"mdSystem":10001,"enforceMultiple":"X","name":"Sample_5","zdeal":{"item":[{"dNumber":"0000006966","term":"21FB2021","vFrom":"20240410000000","vTo":"20240507235959"}]},"incentive":{"item":[{"externalId":"2063828089181","iId":"21FB20210B791EEEB9BE77FC3411ED9E","iPtId":"00000000000000000000000000000000","inCls":"Z3","inTypeCode":"Z31"}]}}}}}
]