<?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>article REST connector loads a large number of table from a nested JSON or XML response in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/ta-p/1717623</link>
    <description>&lt;P&gt;When using Qlik REST connector to load data from API sources that return JSON or XML response, sometimes a huge data model with many tables is returned although the response contains only a single table.&lt;BR /&gt;For example, the following JSON message is parsed into 5 single-row tables instead of one table with 5 rows:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="000074304a.png" style="width: 900px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55280iDE0B55121308F4B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="000074304a.png" alt="000074304a.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik REST connector 2.11.0 (default connector in Qlik Sense April 2019)&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Cause:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;The JSON response has a "nested" structure, i.e each data record is stored as a separated JSON object, which is not member of an array.&lt;/P&gt;
&lt;P&gt;Qlik REST connector applies a standard strategy for parsing JSON response:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Each stand-alone object {..} (not being element of an array) is parsed as a new table&lt;/LI&gt;
&lt;LI&gt;Each array [..] is parsed as a new table. If the array contains&amp;nbsp;multiple objects, each object will take one line in the resulting table&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As a result, nested JSON response is parsed as multiple tables instead of a single flat table. You can find the same strategy in other JSON parsing tool, such as&amp;nbsp;&lt;A href="http://json2table.com/" target="_blank" rel="noopener"&gt;http://json2table.com/&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The same logic applies to nested XML responses.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;Qlik REST connector does not yet support loading JSON/ XML responses with nested structure. There is an ongoing improvement request to support this structure in future releases of the connector.&lt;BR /&gt;Meanwhile, please consider the following work-around solution:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;For XML: Use a WebFile connection&amp;nbsp;to load the response instead of REST connector. WebFile connection supports reading XML with &lt;SPAN&gt;[XmlSimple, table is...]&amp;nbsp;&lt;/SPAN&gt;instruction, which works with nested XML tables. Check the following community discussion for more details:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Data-Connectivity/Can-I-query-nested-XML-data-over-REST-such-that-I-get-a-flat/td-p/1568751" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Sense-Data-Connectivity/Can-I-query-nested-XML-data-over-REST-such-that-I-get-a-flat/td-p/1568751&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;For both:
&lt;UL&gt;
&lt;LI&gt;Develop an external script&amp;nbsp;(such as Python) to download, parse the JSON/ XML response and store the flat table into a local data file. Use EXECUTE command to trigger the external script from Qlik and load data from the file.&lt;/LI&gt;
&lt;LI&gt;If you have access to modify the API source, adjust the response format so that each record is stored as a member object of an array. For instance, the example above can be adjusted as follows:&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="000074304b.png" style="width: 900px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55281i9FEE81C86F16D0BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="000074304b.png" alt="000074304b.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 12:31:46 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2022-04-12T12:31:46Z</dc:date>
    <item>
      <title>REST connector loads a large number of table from a nested JSON or XML response</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/ta-p/1717623</link>
      <description>&lt;P&gt;When using Qlik REST connector to load data from API sources that return JSON or XML response, sometimes a huge data model with many tables is returned although the response contains only a single table.&lt;BR /&gt;For example, the following JSON message is parsed into 5 single-row tables instead of one table with 5 rows:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="000074304a.png" style="width: 900px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55280iDE0B55121308F4B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="000074304a.png" alt="000074304a.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik REST connector 2.11.0 (default connector in Qlik Sense April 2019)&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Cause:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;The JSON response has a "nested" structure, i.e each data record is stored as a separated JSON object, which is not member of an array.&lt;/P&gt;
&lt;P&gt;Qlik REST connector applies a standard strategy for parsing JSON response:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Each stand-alone object {..} (not being element of an array) is parsed as a new table&lt;/LI&gt;
&lt;LI&gt;Each array [..] is parsed as a new table. If the array contains&amp;nbsp;multiple objects, each object will take one line in the resulting table&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As a result, nested JSON response is parsed as multiple tables instead of a single flat table. You can find the same strategy in other JSON parsing tool, such as&amp;nbsp;&lt;A href="http://json2table.com/" target="_blank" rel="noopener"&gt;http://json2table.com/&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The same logic applies to nested XML responses.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;Qlik REST connector does not yet support loading JSON/ XML responses with nested structure. There is an ongoing improvement request to support this structure in future releases of the connector.&lt;BR /&gt;Meanwhile, please consider the following work-around solution:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;For XML: Use a WebFile connection&amp;nbsp;to load the response instead of REST connector. WebFile connection supports reading XML with &lt;SPAN&gt;[XmlSimple, table is...]&amp;nbsp;&lt;/SPAN&gt;instruction, which works with nested XML tables. Check the following community discussion for more details:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Data-Connectivity/Can-I-query-nested-XML-data-over-REST-such-that-I-get-a-flat/td-p/1568751" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Sense-Data-Connectivity/Can-I-query-nested-XML-data-over-REST-such-that-I-get-a-flat/td-p/1568751&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;For both:
&lt;UL&gt;
&lt;LI&gt;Develop an external script&amp;nbsp;(such as Python) to download, parse the JSON/ XML response and store the flat table into a local data file. Use EXECUTE command to trigger the external script from Qlik and load data from the file.&lt;/LI&gt;
&lt;LI&gt;If you have access to modify the API source, adjust the response format so that each record is stored as a member object of an array. For instance, the example above can be adjusted as follows:&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="000074304b.png" style="width: 900px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55281i9FEE81C86F16D0BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="000074304b.png" alt="000074304b.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/ta-p/1717623</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-04-12T12:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: REST connector loads a large number of table from a nested JSON or XML response</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/tac-p/1950456#M6788</link>
      <description>&lt;P&gt;"Qlik REST connector does not yet support loading JSON/ XML responses with nested structure. There is an ongoing improvement request to support this structure in future releases of the connector."&lt;/P&gt;
&lt;P&gt;Is this ever going to be fixed in the REST connector?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 years ago allready that the connector would be enhanced, and yet still the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 17:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/tac-p/1950456#M6788</guid>
      <dc:creator>p_verkooijen</dc:creator>
      <dc:date>2022-06-30T17:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: REST connector loads a large number of table from a nested JSON or XML response</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/tac-p/1951837#M6804</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28986"&gt;@p_verkooijen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If none already exists (I checked and couldn't immediately find one) I would recommend logging a Feature Request/Idea and linking it back to this article. This will help our developers understand the need for it by our customer base.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Ideation/ct-p/qlik-product-insight" target="_blank" rel="noopener"&gt;Ideas&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/tac-p/1951837#M6804</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-07-05T13:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: REST connector loads a large number of table from a nested JSON or XML response</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/tac-p/2466450#M14203</link>
      <description>&lt;P&gt;Hello, even in 2024, it still does not accept nested structures&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 14:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/tac-p/2466450#M14203</guid>
      <dc:creator>gadamo88</dc:creator>
      <dc:date>2024-06-28T14:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: REST connector loads a large number of table from a nested JSON or XML response</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/tac-p/2492464#M14935</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;any updates on this? &lt;BR /&gt;It's kind of a shame that a tool as powerful as Qlik Sense is simply unable to handle nested JSON API responses in a useful way. &lt;BR /&gt;Many endpoints nest their response data like this and trying to parse this into tables in Qlik Sense is a major pain.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 09:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/REST-connector-loads-a-large-number-of-table-from-a-nested-JSON/tac-p/2492464#M14935</guid>
      <dc:creator>NoNameFound</dc:creator>
      <dc:date>2024-11-13T09:25:04Z</dc:date>
    </item>
  </channel>
</rss>

