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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
bluexblue
Contributor
Contributor

How can i build a JSON output with (multiple) loops?

I'm trying to build a JSON output with more than 1 loop. i was able to build an XML using the 'append' feature of tFileOutputMSXML but couldn't find something similar for JSON.

 

As the snapshot shows, i can only loop on address but not on communications at the same time.

Labels (2)
1 Solution

Accepted Solutions
root
Creator II
Creator II

The tWriteJsonField component seems a little lacking on features while working with complex json objects. I have tried using a custom Talend Component "tJSONDoc" ( https://github.com/jlolling/talendcomp_tJSONDoc)

The documentation can be a little confusing in the beginning. If you want to post more info on the intended output structure and what you were able to come up with, please share here.
HTH

PS: I am still learning this component, and so far, I have had multiple success overall using this component in creating complex objects.

View solution in original post

2 Replies
root
Creator II
Creator II

The tWriteJsonField component seems a little lacking on features while working with complex json objects. I have tried using a custom Talend Component "tJSONDoc" ( https://github.com/jlolling/talendcomp_tJSONDoc)

The documentation can be a little confusing in the beginning. If you want to post more info on the intended output structure and what you were able to come up with, please share here.
HTH

PS: I am still learning this component, and so far, I have had multiple success overall using this component in creating complex objects.
bluexblue
Contributor
Contributor
Author

Thank you for the custom component. I've seen it before but i thought maybe Talend can do it without having to go into installing something external.

Will try to post the end flow when im done..