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

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 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog