<?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 API JSON in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/API-JSON/m-p/1597173#M7634</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to extract data from an API and get the data in JSON format which leds to a rather nested LOAD script.&lt;/P&gt;&lt;P&gt;is there any way to avoid this:&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;"name" AS "name_u2",&lt;BR /&gt;"owner_user_id",&lt;BR /&gt;"project_id",&lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT&lt;BR /&gt;"name" AS "name_u1",&lt;BR /&gt;"description",&lt;BR /&gt;"form_id",&lt;BR /&gt;"__KEY_form_sections",&lt;BR /&gt;"__FK_form_sections",&lt;BR /&gt;(SELECT&lt;BR /&gt;"name" AS "name_u0",&lt;BR /&gt;"__KEY_form_section_records",&lt;BR /&gt;"__FK_form_section_records",&lt;BR /&gt;(SELECT&lt;BR /&gt;"__KEY_form_section_record_values",&lt;BR /&gt;"__FK_form_section_record_values",&lt;BR /&gt;(SELECT&lt;BR /&gt;"__KEY_form_section_record_input_values",&lt;BR /&gt;"__FK_form_section_record_input_values",&lt;BR /&gt;(SELECT&lt;BR /&gt;"last_editor_user_id" AS "last_editor_user_id_u2",&lt;BR /&gt;//"project_id" AS "project_id_u2",&lt;BR /&gt;"updated_at" AS "updated_at_u2",&lt;BR /&gt;"bigint_value" AS "bigint_value_u0",&lt;BR /&gt;"string_value" AS "string_value_u0",&lt;BR /&gt;"text_value" AS "text_value_u0",&lt;BR /&gt;"boolean_value" AS "boolean_value_u0",&lt;BR /&gt;"decimal_value" AS "decimal_value_u0",&lt;BR /&gt;"datetime_value" AS "datetime_value_u0",&lt;BR /&gt;"date_value" AS "date_value_u0",&lt;BR /&gt;"__FK_value"&lt;BR /&gt;FROM "value" FK "__FK_value")&lt;BR /&gt;FROM "form_section_record_input_values" PK "__KEY_form_section_record_input_values" FK "__FK_form_section_record_input_values")&lt;BR /&gt;FROM "form_section_record_values" PK "__KEY_form_section_record_values" FK "__FK_form_section_record_values")&lt;BR /&gt;FROM "form_section_records" PK "__KEY_form_section_records" FK "__FK_form_section_records")&lt;BR /&gt;FROM "form_sections" PK "__KEY_form_sections" FK "__FK_form_sections")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;BR /&gt;&lt;BR /&gt;[value]:&lt;BR /&gt;LOAD [last_editor_user_id_u2] As LastEditedById,&lt;BR /&gt;//[project_id_u2] As ,&lt;BR /&gt;[updated_at_u2] As FormLastUpdated,&lt;BR /&gt;&lt;BR /&gt;if(not IsNull([string_value_u0]), [string_value_u0],&lt;BR /&gt;if(not IsNull([text_value_u0]), [text_value_u0],&lt;BR /&gt;if(not IsNull([boolean_value_u0]), [boolean_value_u0],&lt;BR /&gt;if(not IsNull([decimal_value_u0]), [decimal_value_u0],&lt;BR /&gt;if(not IsNull([datetime_value_u0]), [datetime_value_u0],&lt;BR /&gt;if(not IsNull([date_value_u0]), [date_value_u0],&lt;BR /&gt;if(not isnull([bigint_value_u0]), [bigint_value_u0]&lt;BR /&gt;))))))) As FormDataValue,&lt;BR /&gt;&lt;BR /&gt;[__FK_value] AS [__KEY_form_section_record_input_values]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_value]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[form_section_record_input_values]:&lt;BR /&gt;LOAD [__KEY_form_section_record_input_values],&lt;BR /&gt;[__FK_form_section_record_input_values] AS [__KEY_form_section_record_values]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_form_section_record_input_values]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;more nested tables follow below I attach more of it if anyone have time to look at it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 15:25:57 GMT</pubDate>
    <dc:creator>patrickbender</dc:creator>
    <dc:date>2021-12-22T15:25:57Z</dc:date>
    <item>
      <title>API JSON</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/API-JSON/m-p/1597173#M7634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to extract data from an API and get the data in JSON format which leds to a rather nested LOAD script.&lt;/P&gt;&lt;P&gt;is there any way to avoid this:&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;"name" AS "name_u2",&lt;BR /&gt;"owner_user_id",&lt;BR /&gt;"project_id",&lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT&lt;BR /&gt;"name" AS "name_u1",&lt;BR /&gt;"description",&lt;BR /&gt;"form_id",&lt;BR /&gt;"__KEY_form_sections",&lt;BR /&gt;"__FK_form_sections",&lt;BR /&gt;(SELECT&lt;BR /&gt;"name" AS "name_u0",&lt;BR /&gt;"__KEY_form_section_records",&lt;BR /&gt;"__FK_form_section_records",&lt;BR /&gt;(SELECT&lt;BR /&gt;"__KEY_form_section_record_values",&lt;BR /&gt;"__FK_form_section_record_values",&lt;BR /&gt;(SELECT&lt;BR /&gt;"__KEY_form_section_record_input_values",&lt;BR /&gt;"__FK_form_section_record_input_values",&lt;BR /&gt;(SELECT&lt;BR /&gt;"last_editor_user_id" AS "last_editor_user_id_u2",&lt;BR /&gt;//"project_id" AS "project_id_u2",&lt;BR /&gt;"updated_at" AS "updated_at_u2",&lt;BR /&gt;"bigint_value" AS "bigint_value_u0",&lt;BR /&gt;"string_value" AS "string_value_u0",&lt;BR /&gt;"text_value" AS "text_value_u0",&lt;BR /&gt;"boolean_value" AS "boolean_value_u0",&lt;BR /&gt;"decimal_value" AS "decimal_value_u0",&lt;BR /&gt;"datetime_value" AS "datetime_value_u0",&lt;BR /&gt;"date_value" AS "date_value_u0",&lt;BR /&gt;"__FK_value"&lt;BR /&gt;FROM "value" FK "__FK_value")&lt;BR /&gt;FROM "form_section_record_input_values" PK "__KEY_form_section_record_input_values" FK "__FK_form_section_record_input_values")&lt;BR /&gt;FROM "form_section_record_values" PK "__KEY_form_section_record_values" FK "__FK_form_section_record_values")&lt;BR /&gt;FROM "form_section_records" PK "__KEY_form_section_records" FK "__FK_form_section_records")&lt;BR /&gt;FROM "form_sections" PK "__KEY_form_sections" FK "__FK_form_sections")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;BR /&gt;&lt;BR /&gt;[value]:&lt;BR /&gt;LOAD [last_editor_user_id_u2] As LastEditedById,&lt;BR /&gt;//[project_id_u2] As ,&lt;BR /&gt;[updated_at_u2] As FormLastUpdated,&lt;BR /&gt;&lt;BR /&gt;if(not IsNull([string_value_u0]), [string_value_u0],&lt;BR /&gt;if(not IsNull([text_value_u0]), [text_value_u0],&lt;BR /&gt;if(not IsNull([boolean_value_u0]), [boolean_value_u0],&lt;BR /&gt;if(not IsNull([decimal_value_u0]), [decimal_value_u0],&lt;BR /&gt;if(not IsNull([datetime_value_u0]), [datetime_value_u0],&lt;BR /&gt;if(not IsNull([date_value_u0]), [date_value_u0],&lt;BR /&gt;if(not isnull([bigint_value_u0]), [bigint_value_u0]&lt;BR /&gt;))))))) As FormDataValue,&lt;BR /&gt;&lt;BR /&gt;[__FK_value] AS [__KEY_form_section_record_input_values]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_value]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[form_section_record_input_values]:&lt;BR /&gt;LOAD [__KEY_form_section_record_input_values],&lt;BR /&gt;[__FK_form_section_record_input_values] AS [__KEY_form_section_record_values]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_form_section_record_input_values]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;more nested tables follow below I attach more of it if anyone have time to look at it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/API-JSON/m-p/1597173#M7634</guid>
      <dc:creator>patrickbender</dc:creator>
      <dc:date>2021-12-22T15:25:57Z</dc:date>
    </item>
  </channel>
</rss>

