Search code examples
talend

How can I read json from API and write the data to another API using Talend open studio?


I need to read json data from API1 and post that data to another API using Talend open studio, what are the components that I have to use? how could the design be?

Thanks in advance


Solution

  • You would use a tRESTClient to call the first service. How you dealt with the results would depend on how much manipulation you need yo do with the JSON from service 1 before sending it to Service 2 (there are components to manipulate JSON data like tExtractJSONFields and tWriteJSONField). You could use a tXMLMap and then call service 2 with another tRESTClient. See screen shot.

    enter image description here