<?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 Extracting rows from a single http string response in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extracting-rows-from-a-single-http-string-response/m-p/2251496#M35426</link>
    <description>&lt;P&gt;I'm trying to get data via an API call to a web application using tHttpRequest (or tRESTClient). The calls to the API works but it returns all the rows of data in a variable "string". I've tried tExtractJSONFileds and tExtractDelimitedFields but not getting the result I expect which is several rows of data. An excerpt of the string variable is shown below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;{&lt;FONT color="#FF0000"&gt;"COLUMNS":&lt;/FONT&gt;["STUDENTNUMBER","APPLICATIONTYPENAME","APP_RECEIVED","APP_COMPLETE","TIMEFRAMENUMERICCODE","ELECTRONIC_SIG_TS","CONTRACT_RECEIVED","APP_CANCELED","DEPOSIT","DEPOSIT_AMOUNT","DEPOSIT_RECEIVED","PAYVENDORCONFIRMATION","UNDERAGE","UNDERAGE_ELECTRONIC_SIG_TS","INSURANCE_INTENT"],&lt;FONT color="#FF0000"&gt;"DATA":&lt;/FONT&gt;[["R099999","Incoming FIRST YEAR Student Housing Application","February, 27 2017 16:29:38",-1,201709,null,null,null,0,0.0000,null,null,0,null,"No Response"],["R088888","Incoming FIRST YEAR Student Housing Application","February, 19 2017 12:37:24",-1,201709,null,null,null,0,0.0000,null,null,0,null,"No Response"],["R077777","Incoming FIRST YEAR Student Housing Application","February, 17 2017 18:45:56",-1,201709,null,null,null,0,0.0000,null,null,0,null,"No Response"]]}&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;"COLUMNS": tag tells the list of columns that are contained in the string and the&amp;nbsp;"DATA": tag marks the beginning of the actual data. Each row of data is demarcated&amp;nbsp;with open and closed angle brackets and separated by a comma. The column separator&amp;nbsp;is a comma and the fields are enclosed within double quotes.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;How would I process this string field to extract each row of data?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 18:06:26 GMT</pubDate>
    <dc:creator>Dobby1</dc:creator>
    <dc:date>2019-04-10T18:06:26Z</dc:date>
    <item>
      <title>Extracting rows from a single http string response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-rows-from-a-single-http-string-response/m-p/2251496#M35426</link>
      <description>&lt;P&gt;I'm trying to get data via an API call to a web application using tHttpRequest (or tRESTClient). The calls to the API works but it returns all the rows of data in a variable "string". I've tried tExtractJSONFileds and tExtractDelimitedFields but not getting the result I expect which is several rows of data. An excerpt of the string variable is shown below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;{&lt;FONT color="#FF0000"&gt;"COLUMNS":&lt;/FONT&gt;["STUDENTNUMBER","APPLICATIONTYPENAME","APP_RECEIVED","APP_COMPLETE","TIMEFRAMENUMERICCODE","ELECTRONIC_SIG_TS","CONTRACT_RECEIVED","APP_CANCELED","DEPOSIT","DEPOSIT_AMOUNT","DEPOSIT_RECEIVED","PAYVENDORCONFIRMATION","UNDERAGE","UNDERAGE_ELECTRONIC_SIG_TS","INSURANCE_INTENT"],&lt;FONT color="#FF0000"&gt;"DATA":&lt;/FONT&gt;[["R099999","Incoming FIRST YEAR Student Housing Application","February, 27 2017 16:29:38",-1,201709,null,null,null,0,0.0000,null,null,0,null,"No Response"],["R088888","Incoming FIRST YEAR Student Housing Application","February, 19 2017 12:37:24",-1,201709,null,null,null,0,0.0000,null,null,0,null,"No Response"],["R077777","Incoming FIRST YEAR Student Housing Application","February, 17 2017 18:45:56",-1,201709,null,null,null,0,0.0000,null,null,0,null,"No Response"]]}&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;"COLUMNS": tag tells the list of columns that are contained in the string and the&amp;nbsp;"DATA": tag marks the beginning of the actual data. Each row of data is demarcated&amp;nbsp;with open and closed angle brackets and separated by a comma. The column separator&amp;nbsp;is a comma and the fields are enclosed within double quotes.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;How would I process this string field to extract each row of data?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 18:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-rows-from-a-single-http-string-response/m-p/2251496#M35426</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2019-04-10T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting rows from a single http string response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-rows-from-a-single-http-string-response/m-p/2251497#M35427</link>
      <description>&lt;P&gt;We have found the issue relating to why the&amp;nbsp;&lt;SPAN&gt;tExtractJSONFileds did not process the returned string as we expected. The API is served via ColdFusion which does not return the data in JSON format by default.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The default form for query serialization looks a bit like so:&lt;/P&gt; 
&lt;P&gt;{"COLUMNS":["NAME","AGE"],"DATA":[["ray",33],["todd",43],["scott",53]]}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;To have it return it in JSON format we had to include &lt;FONT color="#993300"&gt;&amp;amp;returnformat=json&amp;amp;queryformat=struct&lt;/FONT&gt; as parameters in the call to the API.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks to this article below:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.raymondcamden.com/2014/05/08/ColdFusion-11s-new-Struct-format-for-JSON-and-how-to-use-it-in-ColdFusion-10" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.raymondcamden.com/2014/05/08/ColdFusion-11s-new-Struct-format-for-JSON-and-how-to-use-it-in-ColdFusion-10&lt;/A&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;&lt;SPAN&gt;The issue is solved and can be closed. Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 21:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-rows-from-a-single-http-string-response/m-p/2251497#M35427</guid>
      <dc:creator>Dobby1</dc:creator>
      <dc:date>2019-04-10T21:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting rows from a single http string response</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-rows-from-a-single-http-string-response/m-p/2251498#M35428</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thanks for your feedback and sharing your solution with us.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 07:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-rows-from-a-single-http-string-response/m-p/2251498#M35428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-15T07:56:01Z</dc:date>
    </item>
  </channel>
</rss>

