Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Parse Multiple json documents from single file

I am trying to parse multiple json documents from a single file using following job design
tfileinputfullrow -> tfileinputjson - tmap - tfileoutputdelimited(csv)
Job is iterating through all the 16 rows in that in the file, but outcome is being substituting the first row unique id for the all the rows that is being generated. My file has 10 rows similar like where a uuid and name are different for each customer and may like multiple styles. please let me know ideas on how we can achieve it.

thanks
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
tFileInputJson is used to read data from a json file. In this case, I think you need to iterate each row and extract data from each row using tExtractjsonFields, the job looks like:
tfileinputfullrow -main--tFlowToIterate--iterate-- tFixedFlowInput-main-tExtractJsonFields- tfileoutputdelimited(csv)
tFixedFlowInput: generates the current row.

Regards
Shong

View solution in original post

7 Replies
Anonymous
Not applicable
Author

Hi
tFileInputJson is used to read data from a json file. In this case, I think you need to iterate each row and extract data from each row using tExtractjsonFields, the job looks like:
tfileinputfullrow -main--tFlowToIterate--iterate-- tFixedFlowInput-main-tExtractJsonFields- tfileoutputdelimited(csv)
tFixedFlowInput: generates the current row.

Regards
Shong
Anonymous
Not applicable
Author

Thanks Shong.. this worked perfectly. I'm marking this topic as resolved.
Anonymous
Not applicable
Author

Great, thanks for your feedback.
Anonymous
Not applicable
Author

I am facing the same issue. Can u please share the component details for tFixedFlowInput and ExtractJsonFields.

kuwaryogi27
Creator
Creator

Hello @shong ,

can you please share the configuration for tFixedFlowInput and tExtractJsonFields

Regards,
Yogesh.

 

Anonymous
Not applicable
Author

@ykasture, This topic was a little old, I don't have the job any more. Please refers to the component documentation if you don't know how to uses these components, open a new thread if you have any questions or meet any issue. 

 

kuwaryogi27
Creator
Creator

@shong , Okay creating a new thread please guide me for the same.