Do you want to add a rowNumber to your output then you really have to read this “how to” and learn how to do it! I needed it to add an order line number to my XML file.
In this “how to” you are going to learn how to build a job that produces a JSON string that can be stored to disk or sent to a REST API, for example.
I have used the tJSONDoc components from the Talend Exchange for this “how to” because Talend Open Studio doesn’t provide an easy component