<?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: JSON Multiple Loop Elements using tReplicate to tExtractJSONField in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266229#M45525</link>
    <description>&lt;P&gt;Thank you Shong for your quick response!&amp;nbsp;&lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.qlik.com/" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt; 
&lt;P&gt;Below is a screenshot of the source schema. There's 2 loops: result[*] and attributes[*]. Those attributes belong to a result.id. For tExtractJSON_1, I am pulling result[*].id and result.name. In addition to this, I need attributeType.name and value from the 2nd loop for tExtractJSON_2. The screenshot below shows the preview where the result.id I am pulling from the 1st loop shows as 1 string for all the ids. The other 2 columns are fine, but I don't know how to split the id data into rows like the other 2. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jsonfile.png" style="width: 288px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma92.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157525i8346009EA4E11EF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma92.png" alt="0683p000009Ma92.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using the JSON File above and here's a screenshot of tExtractJSONFields_1&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJSONFields_1.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZuW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139616i3F595DB938228B3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZuW.png" alt="0683p000009MZuW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here's a screenshot of tExtractJSONFields_2&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJSONFields_2.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZox.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140012iD28B1F51738F252E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZox.png" alt="0683p000009MZox.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 16:19:27 GMT</pubDate>
    <dc:creator>Edith1</dc:creator>
    <dc:date>2020-05-21T16:19:27Z</dc:date>
    <item>
      <title>JSON Multiple Loop Elements using tReplicate to tExtractJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266227#M45523</link>
      <description>&lt;P&gt;I'm using tRESTClient to call a get REST API. In the JSON response, there's multiple loops and need objects from both loops.&amp;nbsp; I read to split the response data using tReplicate then use tHASHOutput &amp;amp; tHASHInput to combine the data needed. However, I cannot combine them because I need the id# for both tHASHOutput and the id# is only held in the 1st loop. I am using a file JSON for the tExtractJSONFields (see picture below of the mapping).&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As shown in the picture below, the output for the id# is all 1 string. I need to extract the id# in the 1st loop then extract the looping elements for that loop. How do I accomplish this? &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jsonfile.png" style="width: 672px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaBD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144462iD5930D1E3185A9B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaBD.png" alt="0683p000009MaBD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.png" style="width: 727px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaCF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143848i878173FA0F08B393/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaCF.png" alt="0683p000009MaCF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 23:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266227#M45523</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-05-20T23:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Multiple Loop Elements using tReplicate to tExtractJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266228#M45524</link>
      <description>Hi 
&lt;BR /&gt;Can you please show an example what you extract from loop1 and loop2? and what are you expected result?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 21 May 2020 03:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266228#M45524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-21T03:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Multiple Loop Elements using tReplicate to tExtractJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266229#M45525</link>
      <description>&lt;P&gt;Thank you Shong for your quick response!&amp;nbsp;&lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.qlik.com/" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt; 
&lt;P&gt;Below is a screenshot of the source schema. There's 2 loops: result[*] and attributes[*]. Those attributes belong to a result.id. For tExtractJSON_1, I am pulling result[*].id and result.name. In addition to this, I need attributeType.name and value from the 2nd loop for tExtractJSON_2. The screenshot below shows the preview where the result.id I am pulling from the 1st loop shows as 1 string for all the ids. The other 2 columns are fine, but I don't know how to split the id data into rows like the other 2. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jsonfile.png" style="width: 288px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma92.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157525i8346009EA4E11EF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma92.png" alt="0683p000009Ma92.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using the JSON File above and here's a screenshot of tExtractJSONFields_1&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJSONFields_1.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZuW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139616i3F595DB938228B3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZuW.png" alt="0683p000009MZuW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here's a screenshot of tExtractJSONFields_2&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJSONFields_2.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZox.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140012iD28B1F51738F252E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZox.png" alt="0683p000009MZox.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 16:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266229#M45525</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-05-21T16:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Multiple Loop Elements using tReplicate to tExtractJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266230#M45526</link>
      <description>&lt;P&gt;Hi, just checking in to see if you need anything else from me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 23:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266230#M45526</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-05-26T23:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Multiple Loop Elements using tReplicate to tExtractJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266231#M45527</link>
      <description>what are your expected result? 
&lt;BR /&gt;891;name1;value1
&lt;BR /&gt;331;name2;value2
&lt;BR /&gt;....
&lt;BR /&gt;Is this your expected output? If so, as you did, use two tExtractJsonFields components for each loop element, one for result and another for attribute. In next subjob, add a new column for each data flow and set a sequence number for each row, this number will be the key for join on tMap. 
&lt;BR /&gt;</description>
      <pubDate>Wed, 27 May 2020 03:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266231#M45527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-27T03:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Multiple Loop Elements using tReplicate to tExtractJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266232#M45528</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you suggested, I'm extracting the 1st &amp;amp; 2nd loop separately, then I'm adding the seq#.&amp;nbsp; However, the sequece number is continuous and that's not what I was expecting.&amp;nbsp; I want to know how to extract the child loop and what parent it belongs to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the attachment with screenshots of the API response, what data I need, how I've been extracting the data multiple ways and not getting nowhere. &amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Mave"&gt;Multi-Array API Response.doc.docx&lt;/A&gt;</description>
      <pubDate>Fri, 29 May 2020 19:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266232#M45528</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-05-29T19:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Multiple Loop Elements using tReplicate to tExtractJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266233#M45529</link>
      <description>&lt;P&gt;Hi edithmurillo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What about put the two components &lt;SPAN&gt;tExtractJSONField in sequence. On the first&amp;nbsp;tExtractJSONField you loop the &lt;EM&gt;result[*]&lt;/EM&gt; without dig into &lt;EM&gt;attributes[*]&lt;/EM&gt;. You pass the&lt;EM&gt; attributes[*]&lt;/EM&gt; as a node for the following&amp;nbsp;tExtractJSONField. In this second step e you can define other new loop over the &lt;EM&gt;attributes&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 01:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266233#M45529</guid>
      <dc:creator>tornilleiro</dc:creator>
      <dc:date>2020-05-30T01:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Multiple Loop Elements using tReplicate to tExtractJSONField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266234#M45530</link>
      <description>&lt;P&gt;I figured out a way to get the result I needed using tHMap, now I need to figure out how to connect the tRestClient to the tHMap. Any suggestions? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 23:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Multiple-Loop-Elements-using-tReplicate-to/m-p/2266234#M45530</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2020-06-30T23:40:05Z</dc:date>
    </item>
  </channel>
</rss>

