Extracting List(Array) element using JOLT
Hello,
Can you assist me in retrieving the values stored in the "customfield_10161" field from JSON input? My expectation is to consistently receive the values and name it "DEFECT_ROOT_CAUSE" , whether they are stored as a list or as a single value."
How to write JOLT which will handle the both the case. let say If I will get list then extract last element of it, if not list then record as it is.?
Extracting List: (works fine when input is list)

when input is not list:
then DEFECT_ROOT_CAUSE column is missing My expectation to get the records in DEFECT_ROOT_CAUSE columns whether its list or not.


