Hi,
I want to generate multiple nested json array from multiple tables (in this case from table HEADER and table DETAIL) and I want DETAIL’s records to fetch under 1 json array objects like this example:
"{
"ID_HEADER": "header01",
"DETAIL": :{
"ID_DETAIL": "detail1",
"VALUE": 21521,
"UNIT": EA
}, {
"ID_DETAIL": "detail2",
"VALUE": 24,
"UNIT": EA
}, {
"ID_DETAIL": "detail3",
"VALUE": 25135,
"UNIT": EA
}, {
"ID_DETAIL": "detail4",
"VALUE": 135234,
"UNIT": EA
}
]
}, {
"ID_HEADER": "header02",
"DETAIL": :{
"ID_DETAIL": "detail1",
"VALUE": 23,
"UNIT": EA
}, {
"ID_DETAIL": "detail2",
"VALUE": 353,
"UNIT": EA
}
]
}
]
I already try to create the pipeline to get HEADER table records and then using /ID_HEADER to lookup from DETAIL table and then try to fetch DETAIL table’s record into /DETAIL list-maps using Field Zip stage but it's only combine 2 fields and I need to combine more than 2 fields.
Am I using wrong processor stages or is there any way to generate mupliple nested json array? Can someone assist me on these please.
Thank you.