Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
Currerntly working on automating parsing json files and wiriting json files in the append mode . is it possible?
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
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.