<?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 tExtractJsonFields - Issue with json answer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tExtractJsonFields-Issue-with-json-answer/m-p/2196579#M673</link>
    <description>&lt;P&gt;Hi everyone!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm currently having a trouble with fetching data from a json which is the responde of a tRest object thats gets the result. The json thats returns to me when I call the API from Postman it's something like this:&amp;nbsp; (I cut the entire json file into a friendly preview, the original json file has 30 headers.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{
    "headers": [
        "ID",
        "Última Actualización",
        "Razón Social",
        "Calle",
        "Número",
        "ID Comuna"
    ],
    "data": [
        [
            "co110101",
            "2020-04-02 07:05:24",
            "IRACABAL OTTH HENRI EDWARD JEAN",
            "VIVAR",
            "402",
            "01101"
        ],
        [
            "co110103",
            "2020-04-01 23:51:25",
            "comercializadora y distribuidora jfrm y cia limitada",
            "SITIO Nº 54-B, BARRIO INDUSTRIAL",
            "54",
            "01101"
        ]
            ]
}&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've tried this solution which is the following workflow.&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="talend.PNG" style="width: 859px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Qu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145115iFAB24317B306844A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Qu.png" alt="0683p000009M9Qu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In the tExtractJsonFields i have the following rules :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="talend2.PNG" style="width: 884px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9RD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140806iECA53BFED53F32FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9RD.png" alt="0683p000009M9RD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I've got the&amp;nbsp; OK response, which is the 1834 rows that I want, it's supposed that every list that retrieves from the json has 30 columns (that's the filter in the tMap. If the size of the List is 30 goes to "ok_values", else, goes to "not_okay_values"). BUT, there are some columns that have more than 30 rows, I've check those cases and it appears to have commas inbetween the data like this one :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;"SITIO Nº 54-B, BARRIO INDUSTRIAL"&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't know if i'm fetching bad the data from the tExtractFields because when I call the API from another source I got that the 1834 rows all have 30 columns.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If anyone has dealed with this kind of problems would be nice!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Beforehand thank you very much&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:43:50 GMT</pubDate>
    <dc:creator>robster1</dc:creator>
    <dc:date>2024-11-16T02:43:50Z</dc:date>
    <item>
      <title>tExtractJsonFields - Issue with json answer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJsonFields-Issue-with-json-answer/m-p/2196579#M673</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm currently having a trouble with fetching data from a json which is the responde of a tRest object thats gets the result. The json thats returns to me when I call the API from Postman it's something like this:&amp;nbsp; (I cut the entire json file into a friendly preview, the original json file has 30 headers.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{
    "headers": [
        "ID",
        "Última Actualización",
        "Razón Social",
        "Calle",
        "Número",
        "ID Comuna"
    ],
    "data": [
        [
            "co110101",
            "2020-04-02 07:05:24",
            "IRACABAL OTTH HENRI EDWARD JEAN",
            "VIVAR",
            "402",
            "01101"
        ],
        [
            "co110103",
            "2020-04-01 23:51:25",
            "comercializadora y distribuidora jfrm y cia limitada",
            "SITIO Nº 54-B, BARRIO INDUSTRIAL",
            "54",
            "01101"
        ]
            ]
}&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've tried this solution which is the following workflow.&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="talend.PNG" style="width: 859px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Qu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145115iFAB24317B306844A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Qu.png" alt="0683p000009M9Qu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In the tExtractJsonFields i have the following rules :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="talend2.PNG" style="width: 884px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9RD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140806iECA53BFED53F32FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9RD.png" alt="0683p000009M9RD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I've got the&amp;nbsp; OK response, which is the 1834 rows that I want, it's supposed that every list that retrieves from the json has 30 columns (that's the filter in the tMap. If the size of the List is 30 goes to "ok_values", else, goes to "not_okay_values"). BUT, there are some columns that have more than 30 rows, I've check those cases and it appears to have commas inbetween the data like this one :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;"SITIO Nº 54-B, BARRIO INDUSTRIAL"&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't know if i'm fetching bad the data from the tExtractFields because when I call the API from another source I got that the 1834 rows all have 30 columns.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If anyone has dealed with this kind of problems would be nice!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Beforehand thank you very much&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJsonFields-Issue-with-json-answer/m-p/2196579#M673</guid>
      <dc:creator>robster1</dc:creator>
      <dc:date>2024-11-16T02:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJsonFields - Issue with json answer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJsonFields-Issue-with-json-answer/m-p/2196580#M674</link>
      <description>Hi 
&lt;BR /&gt;I don't understand you on this 'BUT, there are some columns that have more than 30 rows', can you upload a screenshot of tMap to show us what you do on tMap, and what is the expression used to extract the data from the body column. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 10 Apr 2020 04:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJsonFields-Issue-with-json-answer/m-p/2196580#M674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-10T04:46:16Z</dc:date>
    </item>
  </channel>
</rss>

