<?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: Combine multiple json objects into one before sending response in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277515#M53271</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;B&gt;variant#1&lt;/B&gt; - save it not to variables, but to csv files (without tJSONWrite), than read all 3 and make 1 JSON&lt;BR /&gt;&lt;B&gt;variant#2&lt;/B&gt; - concat 3 variables into result JSON string, this variant need more understanding of saved JSON formats - may be need cut-off leading and trailing {} and etc&lt;BR /&gt;&lt;B&gt;variant#3&lt;/B&gt; - use Java function -&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/19566081/what-is-the-best-way-to-combine-merge-2-jsonobjects" target="_blank" rel="nofollow noopener noreferrer"&gt;example1&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;A href="http://stackoverflow.com/questions/2403132/concat-multiple-jsonobjects" target="_blank" rel="nofollow noopener noreferrer"&gt;example 2&lt;/A&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I forgot to mention, I am actually using Variant#2 as a temporary workaround till I find a cleaner solution... I am not comfortable with manipulating the data... it could get messy in the longrun. 
&lt;BR /&gt;So for Variant#1, you are suggesting I write the json object to csv files? Then, how can I combine them to make a single json. 
&lt;BR /&gt;I will check Variant#3.. 
&lt;BR /&gt;Thanks again.</description>
    <pubDate>Mon, 21 Nov 2016 21:56:30 GMT</pubDate>
    <dc:creator>root</dc:creator>
    <dc:date>2016-11-21T21:56:30Z</dc:date>
    <item>
      <title>Combine multiple json objects into one before sending response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277513#M53269</link>
      <description>My job has three different inputs (which I am reading from MSSQL). I am creating three separate json objects from them... 
&lt;BR /&gt;Like this: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBQS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153198i5EBA5705447C6577/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBQS.png" alt="0683p000009MBQS.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;In each of the tJavaRow, I am saving the created json objects in a context variable. 
&lt;BR /&gt;I want to create a "single" json object combining all three together. How can I achieve the same so I can send it back?&amp;nbsp; 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 10:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277513#M53269</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2024-11-16T10:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple json objects into one before sending response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277514#M53270</link>
      <description>&lt;B&gt;variant#1&lt;/B&gt; - save it not to variables, but to csv files (without tJSONWrite), than read all 3 and make 1 JSON 
&lt;BR /&gt; 
&lt;B&gt;variant#2&lt;/B&gt; - concat 3 variables into result JSON string, this variant need more understanding of saved JSON formats - may be need cut-off leading and trailing {} and etc 
&lt;BR /&gt; 
&lt;B&gt;variant#3&lt;/B&gt; - use Java function -&amp;nbsp; 
&lt;A href="http://stackoverflow.com/questions/19566081/what-is-the-best-way-to-combine-merge-2-jsonobjects" target="_blank" rel="nofollow noopener noreferrer"&gt;example1&lt;/A&gt;&amp;nbsp; &amp;nbsp; 
&lt;A href="http://stackoverflow.com/questions/2403132/concat-multiple-jsonobjects" target="_blank" rel="nofollow noopener noreferrer"&gt;example 2&lt;/A&gt;</description>
      <pubDate>Mon, 21 Nov 2016 21:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277514#M53270</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-21T21:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple json objects into one before sending response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277515#M53271</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&lt;B&gt;variant#1&lt;/B&gt; - save it not to variables, but to csv files (without tJSONWrite), than read all 3 and make 1 JSON&lt;BR /&gt;&lt;B&gt;variant#2&lt;/B&gt; - concat 3 variables into result JSON string, this variant need more understanding of saved JSON formats - may be need cut-off leading and trailing {} and etc&lt;BR /&gt;&lt;B&gt;variant#3&lt;/B&gt; - use Java function -&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/19566081/what-is-the-best-way-to-combine-merge-2-jsonobjects" target="_blank" rel="nofollow noopener noreferrer"&gt;example1&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;A href="http://stackoverflow.com/questions/2403132/concat-multiple-jsonobjects" target="_blank" rel="nofollow noopener noreferrer"&gt;example 2&lt;/A&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I forgot to mention, I am actually using Variant#2 as a temporary workaround till I find a cleaner solution... I am not comfortable with manipulating the data... it could get messy in the longrun. 
&lt;BR /&gt;So for Variant#1, you are suggesting I write the json object to csv files? Then, how can I combine them to make a single json. 
&lt;BR /&gt;I will check Variant#3.. 
&lt;BR /&gt;Thanks again.</description>
      <pubDate>Mon, 21 Nov 2016 21:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277515#M53271</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2016-11-21T21:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Combine multiple json objects into one before sending response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277516#M53272</link>
      <description>variant#1 - may be wrong for JSON, need to test - it work with XML, but look like not work with JSON 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCPO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143179i1D14D42B5E615A37/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCPO.png" alt="0683p000009MCPO.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCPT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129071i9854A03F9D48D06D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCPT.png" alt="0683p000009MCPT.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 21 Nov 2016 23:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Combine-multiple-json-objects-into-one-before-sending-response/m-p/2277516#M53272</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-21T23:37:05Z</dc:date>
    </item>
  </channel>
</rss>

