<?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 DB to JSON file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/DB-to-JSON-file/m-p/2280126#M55067</link>
    <description>&lt;P&gt;I am using talend to create json file from a database table.&lt;/P&gt;
&lt;P&gt;Talend creates the file as below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[{"Col1":"Val1"},{"Col2":"Val2"},{"Col3":"Val3"}]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I need the file to be in below format&lt;/P&gt;
&lt;P&gt;{"Col1":"Val1"}&lt;/P&gt;
&lt;P&gt;{"Col2":"Val2"}&lt;/P&gt;
&lt;P&gt;{"Col3":"Val3"}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because this is how its accepted in target.&lt;/P&gt;
&lt;P&gt;Any way to make this work. I can use&amp;nbsp;&lt;EM&gt;tWriteJSONField&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;but I have to map it manually. There are multiple tables and I want to make this as a framework which can accept table names as context variable and produce the json in the above format. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:58:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T03:58:32Z</dc:date>
    <item>
      <title>DB to JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-to-JSON-file/m-p/2280126#M55067</link>
      <description>&lt;P&gt;I am using talend to create json file from a database table.&lt;/P&gt;
&lt;P&gt;Talend creates the file as below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[{"Col1":"Val1"},{"Col2":"Val2"},{"Col3":"Val3"}]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I need the file to be in below format&lt;/P&gt;
&lt;P&gt;{"Col1":"Val1"}&lt;/P&gt;
&lt;P&gt;{"Col2":"Val2"}&lt;/P&gt;
&lt;P&gt;{"Col3":"Val3"}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because this is how its accepted in target.&lt;/P&gt;
&lt;P&gt;Any way to make this work. I can use&amp;nbsp;&lt;EM&gt;tWriteJSONField&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;but I have to map it manually. There are multiple tables and I want to make this as a framework which can accept table names as context variable and produce the json in the above format. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-to-JSON-file/m-p/2280126#M55067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: DB to JSON file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/DB-to-JSON-file/m-p/2280127#M55068</link>
      <description>Hi Stevens 
&lt;BR /&gt;Take a look at tNormalize component. 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/reader/LNO9Tqm8svZQklRyXL8OYw/yV2ZEYW9mADj~cYLcbhFWA" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/LNO9Tqm8svZQklRyXL8OYw/yV2ZEYW9mADj~cYLcbhFWA&lt;/A&gt; 
&lt;BR /&gt;After you generate the Json file, read the whole file as a string using tFileInputRaw, remove the characters "[","]", and then normalize the line to multiple lines. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 05 Dec 2019 11:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/DB-to-JSON-file/m-p/2280127#M55068</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-05T11:52:04Z</dc:date>
    </item>
  </channel>
</rss>

