<?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 Cast field types in JSON - REST connection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cast-field-types-in-JSON-REST-connection/m-p/2501439#M103325</link>
    <description>&lt;P&gt;&lt;SPAN&gt;i have a rest connection that is getting json response from air table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;one of the fields is a text that might have value like 2.10 but when i get the data from the JSON it's converted to numbers which results in 2.1 i tried to convert it using TEXT function in the load but zeros are removed in the result from the JSON&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i tried converting it using TEXT function and also with number format like: text(Num#(ID, '0.00'))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i need to cast it in the SQL query when fetching the data but I'm unable to do this&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2025 11:50:32 GMT</pubDate>
    <dc:creator>Nahla_Mabrouk</dc:creator>
    <dc:date>2025-01-15T11:50:32Z</dc:date>
    <item>
      <title>Cast field types in JSON - REST connection</title>
      <link>https://community.qlik.com/t5/App-Development/Cast-field-types-in-JSON-REST-connection/m-p/2501439#M103325</link>
      <description>&lt;P&gt;&lt;SPAN&gt;i have a rest connection that is getting json response from air table&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;one of the fields is a text that might have value like 2.10 but when i get the data from the JSON it's converted to numbers which results in 2.1 i tried to convert it using TEXT function in the load but zeros are removed in the result from the JSON&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i tried converting it using TEXT function and also with number format like: text(Num#(ID, '0.00'))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;i need to cast it in the SQL query when fetching the data but I'm unable to do this&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 11:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cast-field-types-in-JSON-REST-connection/m-p/2501439#M103325</guid>
      <dc:creator>Nahla_Mabrouk</dc:creator>
      <dc:date>2025-01-15T11:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cast field types in JSON - REST connection</title>
      <link>https://community.qlik.com/t5/App-Development/Cast-field-types-in-JSON-REST-connection/m-p/2501451#M103326</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/249653"&gt;@Nahla_Mabrouk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do it with a preceding load - This should solve your problem.&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;BR /&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;*, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Text(id) as idText;&lt;/STRONG&gt; &lt;BR /&gt;SQL SELECT &lt;BR /&gt;"id",&lt;BR /&gt;"login",&lt;BR /&gt;"first_name",&lt;BR /&gt;"last_name",&lt;BR /&gt;"email",&lt;BR /&gt;"restrict_email",&lt;BR /&gt;"user_type" as "user_type",&lt;BR /&gt;"timezone",&lt;BR /&gt;"language",&lt;BR /&gt;"status",&lt;BR /&gt;"deactivation_date",&lt;BR /&gt;"level",&lt;BR /&gt;"points",&lt;BR /&gt;"created_on",&lt;BR /&gt;"last_updated",&lt;BR /&gt;"last_updated_timestamp",&lt;BR /&gt;"avatar",&lt;BR /&gt;"bio",&lt;BR /&gt;"login_key",&lt;BR /&gt;"custom_field_1"&lt;BR /&gt;FROM JSON (wrap on) "root";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards - Jandre&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 13:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cast-field-types-in-JSON-REST-connection/m-p/2501451#M103326</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-15T13:21:16Z</dc:date>
    </item>
  </channel>
</rss>

