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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
gpinumalla
Creator
Creator

for writing json files in append mode .

Hi all,

Currerntly working on automating parsing json files and wiriting json files in the append mode . is it possible?

Labels (3)
2 Replies
Anonymous
Not applicable

Hello

The official Json output component does not support append model, you can have a look at the JSONDoc* components shared by jlolling on Talend Exchange.

https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&p=marketplace%252F1%252Fproducts%252F1438&pi=marketplace%252F1%252Fproducts%252F1438%252Fitems%252F2887

 

Regards

Shong

juk777
Contributor
Contributor

A real JSON append mode is not possible if you are filling an array, because of the ending "]". The file must be completly rewriten.

In Java, you can do a routine that do that, but you have to read the complete json file first.

 

An idea is to put all your updates in a list (all your rows) and then call a routine that read the json file, put the array in the structure and write a new file.