<?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 Strange tExtractJsonFields behaviour in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341537#M109484</link>
    <description>&lt;P&gt;Hi, I have JSON document stored in DB table and I need to extract those data in order to write them on MySQL. Here's an example of a JSON field I want to parse:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;[{"val":"0","slotId":"T1","slotType":"ABS"},{"val":"0","slotId":"T2","slotType":"ABS"},{"val":"0","slotId":"T3","slotType":"ABS"},{"val":"0","slotId":"T4","slotType":"ABS"},{"val":"0","slotId":"TOT","slotType":"ABS"}]&lt;/PRE&gt; 
&lt;P&gt;and here's my tExtractJSONFields configuration:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine.jpg" style="width: 647px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lx3L.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137972i7DD30588E505E955/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lx3L.jpg" alt="0683p000009Lx3L.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Everything semmed to work but results are not like expected. In particular what I want is all same pod values on the same row, I got this instead:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine2.jpg" style="width: 470px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwzs.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143350i88A0DBAD788A5339/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwzs.jpg" alt="0683p000009Lwzs.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What am I missing?&lt;/P&gt;</description>
    <pubDate>Wed, 23 May 2018 14:24:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-23T14:24:56Z</dc:date>
    <item>
      <title>Strange tExtractJsonFields behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341537#M109484</link>
      <description>&lt;P&gt;Hi, I have JSON document stored in DB table and I need to extract those data in order to write them on MySQL. Here's an example of a JSON field I want to parse:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;[{"val":"0","slotId":"T1","slotType":"ABS"},{"val":"0","slotId":"T2","slotType":"ABS"},{"val":"0","slotId":"T3","slotType":"ABS"},{"val":"0","slotId":"T4","slotType":"ABS"},{"val":"0","slotId":"TOT","slotType":"ABS"}]&lt;/PRE&gt; 
&lt;P&gt;and here's my tExtractJSONFields configuration:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine.jpg" style="width: 647px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lx3L.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137972i7DD30588E505E955/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lx3L.jpg" alt="0683p000009Lx3L.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Everything semmed to work but results are not like expected. In particular what I want is all same pod values on the same row, I got this instead:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine2.jpg" style="width: 470px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwzs.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143350i88A0DBAD788A5339/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwzs.jpg" alt="0683p000009Lwzs.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 14:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341537#M109484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-23T14:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tExtractJsonFields behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341538#M109485</link>
      <description>&lt;P&gt;Hi Are you looking for the following output?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson1.PNG" style="width: 950px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwce.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128211iA5D80833CAC6DF11/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwce.png" alt="0683p000009Lwce.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxIi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144433i35BE6F794F187F46/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxIi.png" alt="0683p000009LxIi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxIn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127949i667A07986F793A99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxIn.png" alt="0683p000009LxIn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson4.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxIx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140689iC98D56EC7119B36F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxIx.png" alt="0683p000009LxIx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 16:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341538#M109485</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-05-23T16:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tExtractJsonFields behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341539#M109486</link>
      <description>&lt;P&gt;Hi, Thank you for your reponse! I see you've set max function in tAggregateRow and this is not what I want.... suppose I've a DB with million of JSON documents like the one I've posted before and for each of them I need a row with all "Tx" fields (plus an ID field in order to join with other tables). I tried to replicate your configuration on my sample dataset which contains just 5 json entries, 2 of them lack of "T4" field. My sample dataset look like this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine.jpg" style="width: 420px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwCm.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151116i1DDDE2B0656C19F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwCm.jpg" alt="0683p000009LwCm.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And this is what I expect to see:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Immagine2.jpg" style="width: 432px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxAz.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152763i0B4E915372EC5485/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxAz.jpg" alt="0683p000009LxAz.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 15:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341539#M109486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-24T15:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tExtractJsonFields behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341540#M109487</link>
      <description>&lt;P&gt;Please provide data in file if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 15:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341540#M109487</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-05-24T15:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tExtractJsonFields behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341541#M109488</link>
      <description>&lt;P&gt;please try below&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson1.PNG" style="width: 938px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwfO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143334i87246AC8A981CB2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwfO.png" alt="0683p000009LwfO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxLI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132197iF7CA01AEB7EDD824/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxLI.png" alt="0683p000009LxLI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxGT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141786i9AA4D30895BC204F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxGT.png" alt="0683p000009LxGT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson4.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwoB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140942iD9261CBA1CEBA15C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwoB.png" alt="0683p000009LwoB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 16:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341541#M109488</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-05-24T16:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tExtractJsonFields behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341542#M109489</link>
      <description>&lt;P&gt;here's the requested sample &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;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LszX"&gt;sample.xlsx&lt;/A&gt;</description>
      <pubDate>Thu, 24 May 2018 16:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341542#M109489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-24T16:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tExtractJsonFields behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341543#M109490</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;please follow the new approach.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Testjson1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxLN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149662i1578D28CF54528E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxLN.png" alt="0683p000009LxLN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 16:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341543#M109490</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-05-24T16:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tExtractJsonFields behaviour</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341544#M109491</link>
      <description>&lt;P&gt;Cool, much better, pretty close... btw if you look at desired table posted above, I have two NULL values in T4 column due to missing field in corresponding jsons and I really need to keep this information. I tried to substitute zero in row2.slotId.equals("T2")?Float.parseFloat(row2.val):0&amp;nbsp; with null or even leaving it empty (I slightly modified your code since I want my data to be float type) but talend returns an error&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 16:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Strange-tExtractJsonFields-behaviour/m-p/2341544#M109491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-24T16:44:53Z</dc:date>
    </item>
  </channel>
</rss>

