0

I am new in Talend. this is my api => http://api.dss.adapt-odisha.com/aagro?url=https://mausam.imd.gov.in/api/warnings_district_api.php

this is created design =>

enter image description here


in tXMLMap

enter image description here


But when i am running this i am not getting data

enter image description here


How can i solve this issue?

enter image description here

aashu1807
  • 203
  • 3
  • 14

1 Answers1

1

Your api returns a json, but tRESTClient converts it to xml by default, because of "Convert response to DOM Document" setting.
I unchecked that setting, and used tExtractJSONFields to parse the json, it's working as expected.
enter image description here

Here's the schema of tExtractJSONFields
enter image description here

Ibrahim Mezouar
  • 3,981
  • 1
  • 18
  • 22