Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
},
{
"productId": "9876",
"name": "Test 2",
"categories":
}
]
Hi
Read categories node as a data and then you can use tExtractJsonField to extract data from the array.
Best regards
Shong
Hi
The tMap component won't allow me to join this back to the main data, as I'm guessing it will only take input from two separate streams of data? There has to be a better way to essentially flatten a JSON with a nested array?
Take a look at this articleto know why it is not allowed. You have to redesign the job like:
main job:
tFileList--iterate--tRunJob
pass the current file path the child job.
child job:
tFileInputJson--main--tReplicate--main.....tHashOutput
--main--...tHashOutput
|
onsubjobok
|
tHashInput....tMap---
|
lookup
|
tHashInput
Shong