How to use parameters from JSON file as a input to REST Web Service

Highlighted
One Star

How to use parameters from JSON file as a input to REST Web Service

I am trying to call a REST web service (it is POST/PUT) and collect response from it. The input parameters to this service is a row from a table (mssql DB). So i'm trying to get data from table, creating a JSON file using it and use the same JSON as input to tREST/tRESTClient Component. My Job looks like this:
tMssqlInput---->> tMap--->>tFileOutputJSON ====>> (onSubJobOk) ===>> tFileInputJSON---->tREST/tRESTClient--->> tLogRow
But I'm stucked here: How pass parameters from that JSON file as input to REST component.
Please help me.......

Thanks
Community Manager

Re: How to use parameters from JSON file as a input to REST Web Service

Hi 
I don't understand your job design, why you write a json file and read data back again from json file?
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch