Created 08-21-2024 11:08 PM
Hi team I want a jolt spec where I want the output to be completely flattened json. this is my input json and assuming where ever there is nested array it should be mapped with other nested array as well. this is my input json -
Created 08-22-2024 11:20 PM
@Atish-123, Welcome to our community! To help you get the best possible answer, I have tagged our NiFi experts @MattWho @SAMSAL @vaishaakb who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 08-22-2024 11:26 PM
hi @MattWho can you give me jolt spec
Created 08-22-2024 11:52 PM
@Atish-123 Thank you for bringing this to our community.
Did you get a chance to review the Jolt Quick reference community article? If not, Please review: https://community.cloudera.com/t5/Community-Articles/Jolt-quick-reference-for-Nifi-Jolt-Processors/t...
Let us know how it goes.
V
Created on 08-23-2024 12:03 AM - edited 08-23-2024 12:03 AM
I know basic of jolt and I did went through couple quick reference for jolt. but it was little bit confusing. can you give me the jolt spec for the one which I have asked
Created on 08-23-2024 09:31 PM - edited 08-23-2024 09:32 PM
Hi,
Welcome to the community. Can you elaborate more on how you want to flatten the input specially when you have multiple arrays with different cardinalities where sometimes you match by index and other (when the array count = 1) you seem to assign to all. Also your sample input seem to have some matching values which makes it ambiguous in figuring which value is being assigned to what array. When I look at the output all I see is two identical objects where all the values seem to match which makes it even more confusing.