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.

2 REPLIES
Eleven Stars TRF
Eleven 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