<?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: Use JSON File as HTTP Body in tREST request in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372858#M135646</link>
    <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was just finishing up some work with the Raw File components. Seems the key is to use global variables. I have a deadline to meet with this but will post a video or something later about how I am handling complex JSON structures. As it seems nested arrays create some pretty difficult to deal with special characters in the JAVA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talk soon,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 22:20:17 GMT</pubDate>
    <dc:creator>rayzorsan</dc:creator>
    <dc:date>2021-10-25T22:20:17Z</dc:date>
    <item>
      <title>Use JSON File as HTTP Body in tREST request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372856#M135644</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use a local JSON file as the body in a request using the tREST component. I also tried the tRESTClient component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the simplest way to take a file and use it in the body of the HTTP request? I want to use the raw input from the file because when I use tMap it keeps escaping the special characters in the JSON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;INPUT:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"name":"Test",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"fruits":[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Apples",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Bananas"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;OUTPUT:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;"fileInfos": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"name": "Test",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"fruits___": "[\"Apples\",\"Bananas\"]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KC3SvAAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153067iCFA65E19418A725E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KC3SvAAL.png" alt="0695b00000KC3SvAAL.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372856#M135644</guid>
      <dc:creator>rayzorsan</dc:creator>
      <dc:date>2024-11-15T23:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON File as HTTP Body in tREST request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372857#M135645</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Have a try to read the file as a string using tFileInputRaw, pass the string to tRest as Http body (with post method).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 02:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372857#M135645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T02:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON File as HTTP Body in tREST request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372858#M135646</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was just finishing up some work with the Raw File components. Seems the key is to use global variables. I have a deadline to meet with this but will post a video or something later about how I am handling complex JSON structures. As it seems nested arrays create some pretty difficult to deal with special characters in the JAVA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talk soon,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 22:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372858#M135646</guid>
      <dc:creator>rayzorsan</dc:creator>
      <dc:date>2021-10-25T22:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON File as HTTP Body in tREST request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372859#M135647</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to do this more simply using Talend and some python locally. You can:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt; Get the JSONs you need&lt;/LI&gt;&lt;LI&gt;run python as it is supported natively (tsystem or otherwise)&lt;/LI&gt;&lt;LI&gt;use tfilelist to reference the jsons&lt;/LI&gt;&lt;LI&gt;use tjavaflex to connect to a talend rest component&lt;/LI&gt;&lt;LI&gt;do the operation in the talend rest component ( I used trestclient)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 20:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-JSON-File-as-HTTP-Body-in-tREST-request/m-p/2372859#M135647</guid>
      <dc:creator>rayzorsan</dc:creator>
      <dc:date>2022-01-25T20:12:09Z</dc:date>
    </item>
  </channel>
</rss>

