<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I write JSON object and other columns into same output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-write-JSON-object-and-other-columns-into-same-output/m-p/2351103#M117828</link>
    <description>&lt;P&gt;I am able find a work around for this by changing my job like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Input --&amp;gt; tJSONWriteField --&amp;gt; tJavaRow(extracted my required key fields from JSON using Java code and populated them as output fileds)--&amp;gt; tLogRow_1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, even tJSONWriteField releases all records at once still no issue. But I don't know the reason why this component holds all records and releases all of them at once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if anyone knows the reason or a solution to make tJSONWriteField release each record immediately without holding it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 20:06:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-30T20:06:34Z</dc:date>
    <item>
      <title>How can I write JSON object and other columns into same output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-write-JSON-object-and-other-columns-into-same-output/m-p/2351101#M117826</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help in resolving below issue. I am new to Talend just started using it from past one week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to read input data, convert it into JSON record(s) and load it into database table as JSON column. I am able to do this without any issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I want to load key column as a separate column so that I can search easily based on key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example I have below 3 columns in my input&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;NAME&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADDR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to load ID into a separate column and convert (ID, NAME and ADDR) into JSON and load into a separate column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current job looks like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input --&amp;gt; tMap1 --&amp;gt; tJavaRow (setting the global variable here with 'ID' using globalMap.put )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&amp;gt; tMap2 --&amp;gt; tJSONWriteField --&amp;gt; tMap4(getting the global variable back using globalMap.get)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt; tLogRow_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last record's 'ID' value is assigned to all output records. If replace tJSONWriteField with tMap, I am getting correct 'ID' value for each record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know what did I do wrong or is there any better way of doing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using "Talend Open Studio for Data Integration&amp;nbsp;Version: 6.4.1(64 bit)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your time and help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 22:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-write-JSON-object-and-other-columns-into-same-output/m-p/2351101#M117826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-29T22:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write JSON object and other columns into same output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-write-JSON-object-and-other-columns-into-same-output/m-p/2351102#M117827</link>
      <description>&lt;P&gt;Its happening because tWriteJSONField is not releasing every row. Its releasing all rows at once, by that time global variable is getting reset multiple times, when I use tMap its not happening because, tMap is not holding the records and releasing it immediately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I make tWriteJSONField to release each record without holding it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 01:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-write-JSON-object-and-other-columns-into-same-output/m-p/2351102#M117827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T01:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I write JSON object and other columns into same output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-can-I-write-JSON-object-and-other-columns-into-same-output/m-p/2351103#M117828</link>
      <description>&lt;P&gt;I am able find a work around for this by changing my job like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Input --&amp;gt; tJSONWriteField --&amp;gt; tJavaRow(extracted my required key fields from JSON using Java code and populated them as output fileds)--&amp;gt; tLogRow_1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, even tJSONWriteField releases all records at once still no issue. But I don't know the reason why this component holds all records and releases all of them at once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if anyone knows the reason or a solution to make tJSONWriteField release each record immediately without holding it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 20:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-can-I-write-JSON-object-and-other-columns-into-same-output/m-p/2351103#M117828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T20:06:34Z</dc:date>
    </item>
  </channel>
</rss>

