I'm trying to do exactly the same thing as the option "all-in-one" on tXMLMap for document (xml) response but on the component tWriteJSONField, with JSON format.
My purpose is to groupe all objects JSON into one row and not into the same number of objects.
Please, it's being a long time now that i cant figure it out.
Solved! Go to Solution.
You can't imagine how much you helped me !
Thanks this works easily great. I added a column in the tMap just before the tWriteJSONField, with a constant value ( "test" )and then added to the group by section of the tWriteJSONField as input.
Great, thanks for your positive feedback!
I want to add my thanks here too because I spent over a day trying to solve this without having to resort to custom Java code.
To be honest, the tWriteJSONField component should not force you to do this. Many of us want to do exactly the same thing, take a lot of rows from an output and stuff them into a JSON array, without regard for grouping. I tried a large number of permutations of JSON tree configurations, and none worked.
Introduction to Talend Open Studio for Data Integration.
Practical steps to developing your data integration strategy.
Create systems and workflow to manage clean data ingestion and data transformation.