<?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 to output JSON records in multiple rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350191#M117074</link>
    <description>We really need some sort of +1 or Like mechanism in here jlolling &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
&lt;BR /&gt;I have to say I agree with Jan, but maybe you can explain why you need the JSON in that format ctufindgood? It does seem like a weird requirement, but I have also had many weird requirements from clients &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Fri, 03 Jun 2016 00:57:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-03T00:57:54Z</dc:date>
    <item>
      <title>How to output JSON records in multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350186#M117069</link>
      <description>&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, 'Helvetica Neue', Helvetica, sans-serif"&gt;Hi Experts,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#242729"&gt;&lt;FONT face="Arial, Helvetica Neue, Helvetica, sans-serif"&gt;&lt;FONT size="2"&gt;I have generated a JSON output file using Talend. However, my problem is that all my records are&amp;nbsp;outputted&amp;nbsp;in 1 row in the JSON file. Below is the sample output:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, 'Helvetica Neue', Helvetica, sans-serif"&gt;My desired output is to have all JSON record separated by newline in the output file:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;BR /&gt;Thanks in advance for the feedback and help.</description>
      <pubDate>Wed, 01 Jun 2016 10:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350186#M117069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T10:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to output JSON records in multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350187#M117070</link>
      <description>replace "}," with "},\n"</description>
      <pubDate>Wed, 01 Jun 2016 18:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350187#M117070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T18:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to output JSON records in multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350188#M117071</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;replace "}," with "},\n"&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks for the feedback.
&lt;BR /&gt;But how do I process JSON file as plain text? When I try to process it, it is always filtered by column. For example, when I try to process the string, records are usually separated by field (field1, field2, field3) and not the whole string (
&lt;FONT size="2"&gt;&lt;FONT face="consolas, monaco, 'bitstream vera sans mono', 'courier new', courier, monospace"&gt;{"field1":"value1_1","field2":"value2_1","field3":"value3_1"},{"field1":"value1_2","field2":"value2_2","field3":"value3_2"},{"field1":"value1_3","field2":"value2_3","field3":"value3_3"})&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 01 Jun 2016 19:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350188#M117071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T19:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to output JSON records in multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350189#M117072</link>
      <description>After you wrote the json file, open it raw (tfileinputraw), read as string, searchn´replace in a tjavarowcomponent, write raw.&lt;BR /&gt;Take care about the Encoding</description>
      <pubDate>Thu, 02 Jun 2016 08:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350189#M117072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-02T08:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to output JSON records in multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350190#M117073</link>
      <description>Oh dear... string manipulation to transform JSON? Seriously?
&lt;BR /&gt;Why do you need to pretty print the output this way. For a technical usage of the file this does not makes sense. For the human read you can use tools which formats the file in a human readable way.
&lt;BR /&gt;I would never ever manipulating the json content which such error prone methods.</description>
      <pubDate>Thu, 02 Jun 2016 22:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350190#M117073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-02T22:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to output JSON records in multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350191#M117074</link>
      <description>We really need some sort of +1 or Like mechanism in here jlolling &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
&lt;BR /&gt;I have to say I agree with Jan, but maybe you can explain why you need the JSON in that format ctufindgood? It does seem like a weird requirement, but I have also had many weird requirements from clients &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 03 Jun 2016 00:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350191#M117074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T00:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to output JSON records in multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350192#M117075</link>
      <description>@jolli: hopy you didn´t called me a dear&amp;nbsp; ...</description>
      <pubDate>Fri, 03 Jun 2016 09:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350192#M117075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T09:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to output JSON records in multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350193#M117076</link>
      <description>Hi jlolling and rhall2.0, 
&lt;BR /&gt;Yes, it is for a technical usage. It needs to accept data in the format of JSON, but the separator (",") actually needs to be replaced by newline character (\n). 
&lt;BR /&gt;Many Thanks.</description>
      <pubDate>Mon, 06 Jun 2016 02:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-output-JSON-records-in-multiple-rows/m-p/2350193#M117076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T02:51:49Z</dc:date>
    </item>
  </channel>
</rss>

