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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
root
Creator II
Creator II

tWriteJsonField - Help - Cannot get Hierarchical output

I have some hierarchical data which I need to create a json object.

 

0683p000009M2Fp.png

 

The way I have designed my job is very primitive... I just added these items in tWriteJsonField component, but, I am unaware of how to get the correct output.

I am attaching my job for anyone who would like to try and assist.

Desired OP:

[{
		"category": "Colors",
		"details": [{
			"category_detail": "Red",
			"total": "100"
		}, {
			"category_detail": "Yellow",
			"total": "200"
		}, {
			"category_detail": "Green",
			"total": "300"
		}]
	},
	{
		"category": "Shapes",
		"details": [{
			"category_detail": "Circle",
			"total": "400"
		}, {
			"category_detail": "Square",
			"total": "500"
		}, {
			"category_detail": "Triangle",
			"total": "600"
		}]
	}
]

 

Any help is appreciated.

Labels (4)
2 Replies
yome1
Creator
Creator

Hello,

 

You probably can use TalendDataMapper (subscription version only)

 

https://help.talend.com/reader/0G_VvrRkdPvPXhSX86ghZQ/MDauhq9nl1m0FXZX~aHp9Q

root
Creator II
Creator II
Author

nah, its open studio. thnx