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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
gtaware
Contributor
Contributor

JSON File creation using Context from Parent Job

Hi Team ,

I  want to create a  json file as which  is shown in image 0683p000009M9xe.pngSample jSON

Can you please guide me how to achieve this ? 
Labels (3)
8 Replies
manodwhb
Champion II
Champion II

@gtaware,  paas the context to child job that child job should be tFixedFlowInput>>tWriteJsonFields>>tFileOutputRow.

 

 

gtaware
Contributor
Contributor
Author

Thanks Let me try that.

gtaware
Contributor
Contributor
Author

Can you please create a sample Job and Post a reply here . 

manodwhb
Champion II
Champion II

@gtaware , please share the job what you have tried?

 

gtaware
Contributor
Contributor
Author

0683p000009M9xg.png

manodwhb
Champion II
Champion II

@gtaware ,OK ,the job is completed successfully right  validate the json data that have you got correct as you expected?

 

gtaware
Contributor
Contributor
Author

I have posted the Job which has been created but that is not a complete Json which I am expecting .  

how to add other details which I have shown in very first image . 

 

 
gtaware
Contributor
Contributor
Author

Hi Team,

Can you please help me how to add  sub element which contains array in tWriteJsonField component 

Below is array which I want to add in my existing json file which I am creating using tWriteJsonField 

"additonalDetails": {
"nvPair": [
{
"name": "fileId",
"value": "10306"
},
{
"name": "fileName",
"value": "ACCULYNK.WUDPGBP.20200129.txt"
}
]
}