<?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 set multiple loop elements in twritejsonfield component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366372#M129870</link>
    <description>&lt;P&gt;What's your next step after generate the Json string? Output it to a Json file or call a webservice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 08:34:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-16T08:34:29Z</dc:date>
    <item>
      <title>How to set multiple loop elements in twritejsonfield component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366369#M129867</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam new to talend and was looking to see if the below can be achieved while generating json through tWriteJsonfield component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My json object has below format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;	"id": "123",&lt;/P&gt;&lt;P&gt;	"Name": "tya",&lt;/P&gt;&lt;P&gt;	"dept": [{&lt;/P&gt;&lt;P&gt;		"type": "retere22",&lt;/P&gt;&lt;P&gt;		"rel": "from"&lt;/P&gt;&lt;P&gt;	}, {&lt;/P&gt;&lt;P&gt;		"type": "retere27",&lt;/P&gt;&lt;P&gt;		"rel": "from"&lt;/P&gt;&lt;P&gt;	}],&lt;/P&gt;&lt;P&gt;	"prodcts": [{&lt;/P&gt;&lt;P&gt;		"prdname": "aquea",&lt;/P&gt;&lt;P&gt;		"prodtype": "Inde"&lt;/P&gt;&lt;P&gt;	}, {&lt;/P&gt;&lt;P&gt;		"prdname": "trewre",&lt;/P&gt;&lt;P&gt;		"prodtype": "usasr"&lt;/P&gt;&lt;P&gt;	}],&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was able to created one loop element by using group by in component properties for dept object on type value &lt;/P&gt;&lt;P&gt;but is their a way to set another loop element for prodcts array as well .. please suggest some way to achieve the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366369#M129867</guid>
      <dc:creator>HVasa1630039830</dc:creator>
      <dc:date>2024-11-15T23:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set multiple loop elements in twritejsonfield component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366370#M129868</link>
      <description>&lt;P&gt;@Hemanth Vasa​&amp;nbsp;, tWriteJsonField does not support multiple loop elements. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 03:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366370#M129868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-16T03:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to set multiple loop elements in twritejsonfield component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366371#M129869</link>
      <description>&lt;P&gt;HI thanks for the reply .. is their any other way to achieve the same instead of twritejsonfield&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please advice or guide on how to achive json with multiple loop elements &lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 04:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366371#M129869</guid>
      <dc:creator>HVasa1630039830</dc:creator>
      <dc:date>2021-09-16T04:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set multiple loop elements in twritejsonfield component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366372#M129870</link>
      <description>&lt;P&gt;What's your next step after generate the Json string? Output it to a Json file or call a webservice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 08:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366372#M129870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-16T08:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set multiple loop elements in twritejsonfield component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366373#M129871</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the delayed reply .. my output is to a json file which inturn iam converting to a byte and sending it to kafka component .. in precise i will be sending that json in kafka .. so it will connect to kafka component&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice on how to achieve the same&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 04:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366373#M129871</guid>
      <dc:creator>HVasa1630039830</dc:creator>
      <dc:date>2021-09-18T04:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set multiple loop elements in twritejsonfield component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366374#M129872</link>
      <description>&lt;P&gt;@Hemanth Vasa​&amp;nbsp;, as the twriteJsonField does not support multiple loop elements, have a try other way:&lt;/P&gt;&lt;P&gt;First, twriteJsonField generate the first part string &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"id": "123",&lt;/P&gt;&lt;P&gt;"Name": "tya",&lt;/P&gt;&lt;P&gt;"dept": [{&lt;/P&gt;&lt;P&gt;"type": "retere22",&lt;/P&gt;&lt;P&gt;"rel": "from"&lt;/P&gt;&lt;P&gt;}, {&lt;/P&gt;&lt;P&gt;"type": "retere27",&lt;/P&gt;&lt;P&gt;"rel": "from"&lt;/P&gt;&lt;P&gt;}]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Then, use another tWriteJsonField generate the second part of string like&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;{"prodcts": [{&lt;/P&gt;&lt;P&gt;"prdname": "aquea",&lt;/P&gt;&lt;P&gt;"prodtype": "Inde"&lt;/P&gt;&lt;P&gt;}, {&lt;/P&gt;&lt;P&gt;"prdname": "trewre",&lt;/P&gt;&lt;P&gt;"prodtype": "usasr"&lt;/P&gt;&lt;P&gt;}],&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Link two part of strings to form a string and output it to a file, before doing this step, delete or add some characters from the two part of strings to be able to generate the required json string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 09:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366374#M129872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-22T09:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to set multiple loop elements in twritejsonfield component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366375#M129873</link>
      <description>&lt;P&gt;However it may turn out to be a very weird way of handling data. In a complex JSON, there can be more arrays and the purpose can easily be defeated. However for a determined scenario, approach looks to be a good work around.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 04:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366375#M129873</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2021-09-29T04:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set multiple loop elements in twritejsonfield component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366376#M129874</link>
      <description>&lt;P&gt;One way to create complex json is using custom components like these here:&lt;/P&gt;&lt;P&gt;https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1438&amp;amp;pi=marketplace%252F1%252Fproducts%252F1438%252Fitems%252F2982&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 07:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-multiple-loop-elements-in-twritejsonfield-component/m-p/2366376#M129874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-29T07:09:17Z</dc:date>
    </item>
  </channel>
</rss>

