<?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 tREST component escapes doublequotes in JSON Array wrong in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tREST-component-escapes-doublequotes-in-JSON-Array-wrong/m-p/2369708#M132827</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have following problem. I want to build a JSON Request and send it to a REST Endpoint with the tREST component, so far so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This JSON contains an Array. Every value in this Array have to be within doublequotes (example: ["value","value","value"])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But tREST does this: ["value\",\"value\",\"value"\]&lt;/P&gt;&lt;P&gt;This is an Example of the Datainput (first column is the object ID, second are the values comma seperated) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008vY1aAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145792i869A498D65E9BF2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008vY1aAAE.png" alt="0693p000008vY1aAAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This Input Data is used to build the JSON Request:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008vY29AAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138530i7A4D28FF87CE356D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008vY29AAE.png" alt="0693p000008vY29AAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008vY32AAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140924iFEAE7915C98592C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008vY32AAE.png" alt="0693p000008vY32AAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And tREST build this:&lt;/P&gt;&lt;P&gt;Payload: {"guid":"93E4E59D-B679-46B3-8AD4-7D60DFD1D1B1","jobId":"69e1198d-ae89-4e1a-8894-9a194ed71a85","jobReplyUrl":"&lt;A href="https://replyURL:9001/services/esb/eventlogger/api/v0.1" target="_blank"&gt;https://replyURL:9001/services/esb/eventlogger/api/v0.1&lt;/A&gt;","forwardMailObjects":&lt;/P&gt;&lt;P&gt;["\"33FED240-B12F-48F7-B7F7-53A31061431F\""]}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what could be wrong?&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;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:50:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T01:50:52Z</dc:date>
    <item>
      <title>tREST component escapes doublequotes in JSON Array wrong</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tREST-component-escapes-doublequotes-in-JSON-Array-wrong/m-p/2369708#M132827</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have following problem. I want to build a JSON Request and send it to a REST Endpoint with the tREST component, so far so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This JSON contains an Array. Every value in this Array have to be within doublequotes (example: ["value","value","value"])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But tREST does this: ["value\",\"value\",\"value"\]&lt;/P&gt;&lt;P&gt;This is an Example of the Datainput (first column is the object ID, second are the values comma seperated) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008vY1aAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145792i869A498D65E9BF2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008vY1aAAE.png" alt="0693p000008vY1aAAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This Input Data is used to build the JSON Request:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008vY29AAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138530i7A4D28FF87CE356D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008vY29AAE.png" alt="0693p000008vY29AAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000008vY32AAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140924iFEAE7915C98592C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000008vY32AAE.png" alt="0693p000008vY32AAE.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And tREST build this:&lt;/P&gt;&lt;P&gt;Payload: {"guid":"93E4E59D-B679-46B3-8AD4-7D60DFD1D1B1","jobId":"69e1198d-ae89-4e1a-8894-9a194ed71a85","jobReplyUrl":"&lt;A href="https://replyURL:9001/services/esb/eventlogger/api/v0.1" target="_blank"&gt;https://replyURL:9001/services/esb/eventlogger/api/v0.1&lt;/A&gt;","forwardMailObjects":&lt;/P&gt;&lt;P&gt;["\"33FED240-B12F-48F7-B7F7-53A31061431F\""]}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what could be wrong?&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;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tREST-component-escapes-doublequotes-in-JSON-Array-wrong/m-p/2369708#M132827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T01:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: tREST component escapes doublequotes in JSON Array wrong</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tREST-component-escapes-doublequotes-in-JSON-Array-wrong/m-p/2369709#M132828</link>
      <description>&lt;P&gt;@Lars Hähnel​&amp;nbsp;, tRestclient requires two fields as input body and string as you see the input schema of tRestclient , you need provide these two fields with same data types and you can pass any one of the value and other filed would be nothing. it works this way. if you have passed proper payload ,which you no need to specify \ .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 01:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tREST-component-escapes-doublequotes-in-JSON-Array-wrong/m-p/2369709#M132828</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-08-07T01:25:33Z</dc:date>
    </item>
  </channel>
</rss>

