Add json output to context variable

Six Stars

Add json output to context variable

Hi,

 

I have a job as below:

 

tfileinputdelimited-->tExtractJsonField-->tmap-->tWriteJsonField-->tfileOutputdelimited

 

 

Now, Instead of passing the processed json output( generated at tWriteJsonField ) into a file, I want to pass it into a context variable so that I can pass the value in tRest component. Is it possible? If yes, How do I achieve this?

 

Thanks in advance.

Fifteen Stars TRF
Fifteen Stars

Re: Add json output to context variable

Connect a tSetGlobalVar to tWriteJSONField to get the desired values in global variables.


TRF
Six Stars

Re: Add json output to context variable

Will the variable hold the data in json format or just the values? if you don't mind, can you show any example where the data from tWriteJsonField component is passed into a variable?




Thank you

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

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now