<?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: tSAPInput: Write JSON with multiple rows in table output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313256#M84126</link>
    <description>Hi,&lt;BR /&gt;Here is a component &lt;A href="https://help.talend.com/search/all?query=tWriteJSONField&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tWriteJSONField&lt;/A&gt; which transforms the incoming data into JSON fields.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Wed, 17 Sep 2014 03:16:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-17T03:16:54Z</dc:date>
    <item>
      <title>tSAPInput: Write JSON with multiple rows in table output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313255#M84125</link>
      <description>Hi 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;after my 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCsRcCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-tSAPInput-Merge-Outputs/td-p/57216&lt;/A&gt; was sloved, i stuck at the next step: Parsing the SAP output into JSON. 
&lt;BR /&gt;The outputs with the type 
&lt;I&gt;output_structure&lt;/I&gt; are easy. Not so easy is the type 
&lt;B&gt;output_table&lt;/B&gt;. This may contains more than one rows. Talend iterate now over all data rows and executing all components in the chain many-times. 
&lt;BR /&gt;My question is now: What is the best way to write this data rows into JSON? 
&lt;BR /&gt; 
&lt;BR /&gt;Here is my job: 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/199276/hc_2014_09_16_16_39_15.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAuz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150511i75407595316D78EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAuz.png" alt="0683p000009MAuz.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Example: 
&lt;BR /&gt;SAP returns the following table: 
&lt;BR /&gt; 
&lt;PRE&gt; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Info&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt; 01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Test &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | My Info #1&lt;BR /&gt; 02 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Test #2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| My Info #2&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Expected JSON: 
&lt;BR /&gt; 
&lt;PRE&gt;&lt;BR /&gt;{"RESULT":}&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you very much! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;"Talend Open Studio for ESB"&lt;BR /&gt;Version: 5.5.1&lt;BR /&gt;Build id: r118616-20140617-1132&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313255#M84125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: tSAPInput: Write JSON with multiple rows in table output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313256#M84126</link>
      <description>Hi,&lt;BR /&gt;Here is a component &lt;A href="https://help.talend.com/search/all?query=tWriteJSONField&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tWriteJSONField&lt;/A&gt; which transforms the incoming data into JSON fields.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 17 Sep 2014 03:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313256#M84126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-17T03:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: tSAPInput: Write JSON with multiple rows in table output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313257#M84127</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi,&lt;BR /&gt;Here is a component &lt;A href="https://help.talend.com/search/all?query=tWriteJSONField&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tWriteJSONField&lt;/A&gt; which transforms the incoming data into JSON fields.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi Sabrina,
&lt;BR /&gt;i already use this component and it works well. My problem is, that the 
&lt;I&gt;tSapInput&lt;/I&gt; component returns a 
&lt;B&gt;output_table&lt;/B&gt; (which contains many data rows). I need to create a JSON Array containing all data rows from the SAP output.
&lt;BR /&gt;This JSON Array must be a part of a JSON String which is generated from the other SAP Outputs.
&lt;BR /&gt;
&lt;BR /&gt;Lets say SAP returns the following data:
&lt;BR /&gt;A table (
&lt;I&gt;output_table&lt;/I&gt;, contains 0..n rows):
&lt;BR /&gt;
&lt;PRE&gt; ID         | Name           | Info&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt; 01         | Test           | My Info #1&lt;BR /&gt; 02         | Test #2        | My Info #2&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;And a structure (
&lt;I&gt;output_structure&lt;/I&gt;, contains only one row):
&lt;BR /&gt;
&lt;PRE&gt;CustomerName=Bond&lt;BR /&gt;CustomerPrename=James&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;Expected JSON:
&lt;BR /&gt;
&lt;PRE&gt;{"CustomerName":"Bond","CustomerPrename":"James","tableOutput":}&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;With the tWriteJSONField it no problem for me to create a JSON from the structure. I have only trouble with the table.
&lt;BR /&gt;
&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 17 Sep 2014 08:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313257#M84127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-17T08:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: tSAPInput: Write JSON with multiple rows in table output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313258#M84128</link>
      <description>Here an example: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAbU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132053i576F6D9FE509207C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAbU.png" alt="0683p000009MAbU.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAv4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131782i699CB8AF752B9A24/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAv4.png" alt="0683p000009MAv4.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I don't want 5 JSON Strings (see what tLogRow gets). I want one JSON String with an Array inside. How can I do this with talend? 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you very much! 
&lt;BR /&gt; 
&lt;BR /&gt;I have now the same problem as clorenz ( 
&lt;A href="http://www.talendforge.org/forum/viewtopic.php?pid=112669" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/forum/viewtopic.php?pid=112669&lt;/A&gt;) one year ago.</description>
      <pubDate>Wed, 17 Sep 2014 13:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313258#M84128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-17T13:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: tSAPInput: Write JSON with multiple rows in table output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313259#M84129</link>
      <description>Hi, 
&lt;BR /&gt;I have an issue somewhat similar to the one mentioned here. 
&lt;BR /&gt;I am trying to create an array of json records out of a tsv file but this particular array element has values separated by commas. 
&lt;BR /&gt;I want the following structure: 
&lt;BR /&gt;, 
&lt;BR /&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "parentGroupId": "790" 
&lt;BR /&gt;13&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;BR /&gt;14&amp;nbsp;&amp;nbsp;&amp;nbsp; ] 
&lt;BR /&gt;Here, I want the square brackets surrounding the mediaTypes element and the values "Online", "Print" come from a single column of a tsv file. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Is this possible? 
&lt;BR /&gt;Thank you. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAv9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139114iF5B33AD9357F318D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAv9.png" alt="0683p000009MAv9.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tSAPInput-Write-JSON-with-multiple-rows-in-table-output/m-p/2313259#M84129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-17T13:31:27Z</dc:date>
    </item>
  </channel>
</rss>

