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.

Forteen Stars TRF
Forteen 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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.