<?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 Re: The REST API response is coming in weird format in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2546900#M149497</link>
    <description>&lt;P&gt;The "decoded format" you are seeing is likely Talend's internal &lt;STRONG&gt;Document&lt;/STRONG&gt; type (XML representation) or a &lt;STRONG&gt;Base64&lt;/STRONG&gt; encoded string, which &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/esb-rest/trestclient" target="_blank"&gt;tRESTClient&lt;/A&gt; often uses by default for response handling.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To resolve this and obtain an exact JSON format, follow these steps:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Disable Automatic XML Conversion (tRESTClient)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;By default, tRESTClient attempts to convert JSON responses into a DOM document (XML) for easier mapping in Talend's ESB components.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Go to the &lt;STRONG&gt;Advanced settings&lt;/STRONG&gt; tab of your tRESTClient component.&lt;/LI&gt;
 &lt;LI&gt;Uncheck the box &lt;STRONG&gt;"Convert response to DOM document"&lt;/STRONG&gt;.&lt;/LI&gt;
 &lt;LI&gt;This forces the component to return the raw response in the string field of the output schema instead of the body (Document) field.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;2. Configure the Accept Type&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Ensure the component explicitly requests JSON from the server to match your &lt;A href="https://learning.postman.com/docs/sending-requests/response-data/responses" target="_blank"&gt;Postman configuration&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;In the &lt;STRONG&gt;Basic settings&lt;/STRONG&gt; tab of tRESTClient, set the &lt;STRONG&gt;Accept Type&lt;/STRONG&gt; to &lt;STRONG&gt;JSON&lt;/STRONG&gt;.&lt;/LI&gt;
 &lt;LI&gt;If you are using tREST, ensure you have an Accept header with the value application/json in the &lt;STRONG&gt;HTTP Headers&lt;/STRONG&gt; table.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;3. Access the Correct Output Column&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The tRESTClient component has a fixed output schema with three main columns: statusCode, body, and string.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;STRONG&gt;Use the string column:&lt;/STRONG&gt; This column contains the raw JSON string.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Avoid the body column:&lt;/STRONG&gt; Unless you specifically need a Document type for tXMLMap, this column will often appear empty or "decoded" if the conversion settings are incorrect.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;4. Handle Gzip Compression (If Applicable)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If your API returns compressed data, tRESTClient may sometimes fail to decode it properly in the Error flow, though it usually handles it for successful 200 OK responses.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;For more robust handling in newer Talend versions, consider using the &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/http/thttpclient-schema-and-output" target="_blank"&gt;tHTTPClient&lt;/A&gt; component, which provides more direct control over JSON body extraction.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Summary Workflow:&lt;/STRONG&gt;&lt;BR /&gt;tRESTClient (Uncheck 'Convert response to DOM') -&amp;gt; tExtractJSONFields (Link to 'string' column) -&amp;gt; tLogRow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2026 20:55:26 GMT</pubDate>
    <dc:creator>Greg_Taffer</dc:creator>
    <dc:date>2026-04-14T20:55:26Z</dc:date>
    <item>
      <title>The REST API response is coming in weird format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2491973#M141497</link>
      <description>&lt;P&gt;Hi team&lt;BR /&gt;&lt;BR /&gt;I am able to obtain the JSON response as part of an API GET request via postman.&lt;BR /&gt;I am using the same headers in tREST as well as tRESTClient components, I am getting the status code as 200 but the body, I am not getting as JSON format instead I am getting in some decoded format or something.&lt;BR /&gt;&lt;BR /&gt;How to resolve this issue and how to obtain the response in exact JSON format.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;DBS&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 08:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2491973#M141497</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2024-11-11T08:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: The REST API response is coming in weird format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2495209#M141584</link>
      <description>&lt;P&gt;I think the actual data isn't in the right JSON format like you expected. This could be because of how the data is being encoded or sent back from the API. To fix this, check the headers you're sending with your request to make sure they match what the API expects. Specifically, look at the "Content-Type" header and make sure it says "application/json". This tells the API you want the data in JSON format. If it still doesn't work, take a closer look at the response body itself to see if there are any strange characters or codes that might need to be decoded or handled differently. Adjusting these settings should help you get the API response in the correct JSON format and it works on every other app as well, like you can also implement it on some streaming platforms like Netflix and DixMax &lt;A href="https://freecineapp.com.br/" target="_self"&gt;app&lt;/A&gt;. Hope this works.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2024 05:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2495209#M141584</guid>
      <dc:creator>hajraboba</dc:creator>
      <dc:date>2024-12-01T05:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: The REST API response is coming in weird format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2539205#M148273</link>
      <description>&lt;P&gt;It looks like the API response isn’t in proper JSON format. Make sure your request headers include &lt;STRONG data-start="144" data-end="178"&gt;Content-Type: application/json&lt;/STRONG&gt; so the API knows to send JSON. If it still fails, check the response body for unusual characters or encoding issues. Fixing these should make the data work correctly, just like it does on other apps and streaming platforms like Netflix or magis &lt;A href="https://magistvgratisapk.com" target="_self"&gt;app&lt;/A&gt;. we hope this will work better.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 08:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2539205#M148273</guid>
      <dc:creator>nicolesilvera</dc:creator>
      <dc:date>2025-12-15T08:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: The REST API response is coming in weird format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2546900#M149497</link>
      <description>&lt;P&gt;The "decoded format" you are seeing is likely Talend's internal &lt;STRONG&gt;Document&lt;/STRONG&gt; type (XML representation) or a &lt;STRONG&gt;Base64&lt;/STRONG&gt; encoded string, which &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/esb-rest/trestclient" target="_blank"&gt;tRESTClient&lt;/A&gt; often uses by default for response handling.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To resolve this and obtain an exact JSON format, follow these steps:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Disable Automatic XML Conversion (tRESTClient)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;By default, tRESTClient attempts to convert JSON responses into a DOM document (XML) for easier mapping in Talend's ESB components.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Go to the &lt;STRONG&gt;Advanced settings&lt;/STRONG&gt; tab of your tRESTClient component.&lt;/LI&gt;
 &lt;LI&gt;Uncheck the box &lt;STRONG&gt;"Convert response to DOM document"&lt;/STRONG&gt;.&lt;/LI&gt;
 &lt;LI&gt;This forces the component to return the raw response in the string field of the output schema instead of the body (Document) field.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;2. Configure the Accept Type&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Ensure the component explicitly requests JSON from the server to match your &lt;A href="https://learning.postman.com/docs/sending-requests/response-data/responses" target="_blank"&gt;Postman configuration&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;In the &lt;STRONG&gt;Basic settings&lt;/STRONG&gt; tab of tRESTClient, set the &lt;STRONG&gt;Accept Type&lt;/STRONG&gt; to &lt;STRONG&gt;JSON&lt;/STRONG&gt;.&lt;/LI&gt;
 &lt;LI&gt;If you are using tREST, ensure you have an Accept header with the value application/json in the &lt;STRONG&gt;HTTP Headers&lt;/STRONG&gt; table.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;3. Access the Correct Output Column&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The tRESTClient component has a fixed output schema with three main columns: statusCode, body, and string.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&lt;STRONG&gt;Use the string column:&lt;/STRONG&gt; This column contains the raw JSON string.&lt;/LI&gt;
 &lt;LI&gt;&lt;STRONG&gt;Avoid the body column:&lt;/STRONG&gt; Unless you specifically need a Document type for tXMLMap, this column will often appear empty or "decoded" if the conversion settings are incorrect.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;4. Handle Gzip Compression (If Applicable)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If your API returns compressed data, tRESTClient may sometimes fail to decode it properly in the Error flow, though it usually handles it for successful 200 OK responses.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;For more robust handling in newer Talend versions, consider using the &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/http/thttpclient-schema-and-output" target="_blank"&gt;tHTTPClient&lt;/A&gt; component, which provides more direct control over JSON body extraction.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Summary Workflow:&lt;/STRONG&gt;&lt;BR /&gt;tRESTClient (Uncheck 'Convert response to DOM') -&amp;gt; tExtractJSONFields (Link to 'string' column) -&amp;gt; tLogRow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 20:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-REST-API-response-is-coming-in-weird-format/m-p/2546900#M149497</guid>
      <dc:creator>Greg_Taffer</dc:creator>
      <dc:date>2026-04-14T20:55:26Z</dc:date>
    </item>
  </channel>
</rss>

