<?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: transmettre un JSON en input pour un tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2549093#M149574</link>
    <description>&lt;P&gt;Thank you for your answer!&lt;/P&gt;
&lt;P&gt;I am trying to follow your recommended approach using tWriteJSONField → tRESTClient, but I am struggling with the tWriteJSONField configuration.&lt;/P&gt;
&lt;P&gt;I have:&lt;BR /&gt;- A tFixedFlowInput with 3 columns: username (String), password (String), body (String)&lt;BR /&gt;- The JSON structure configured with username and password mapped under rootTag&lt;/P&gt;
&lt;P&gt;However, I get the following error:&lt;BR /&gt;"Le paramètre (Boucle JSON) doit avoir au moins une valeur"&lt;BR /&gt;(The JSON Loop parameter must have at least one value)&lt;/P&gt;
&lt;P&gt;Could you please clarify:&lt;BR /&gt;1. How to properly configure the JSON loop in tWriteJSONField?&lt;BR /&gt;2. How to configure the "Body type: String" and "Use column" in tRESTClient? I cannot find these fields in my version.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2026 14:31:20 GMT</pubDate>
    <dc:creator>anyxs</dc:creator>
    <dc:date>2026-05-13T14:31:20Z</dc:date>
    <item>
      <title>transmettre un JSON en input pour un tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2548988#M149571</link>
      <description>&lt;P&gt;Bonjour,&lt;/P&gt;
&lt;P&gt;Je suis nouvelle sur Talend Open Studio et je rencontre une difficulté avec le composant tRESTClient.&lt;/P&gt;
&lt;P&gt;Je souhaiterais savoir quelle est la bonne méthode pour transmettre un JSON contenant deux valeurs en input (par exemple &lt;CODE&gt;username&lt;/CODE&gt; et &lt;CODE&gt;password&lt;/CODE&gt;) dans une requête POST.&lt;/P&gt;
&lt;P&gt;Quelle est la bonne pratique recommandée pour construire et envoyer ce type de JSON avec tRESTClient ?&lt;/P&gt;
&lt;P&gt;Merci d’avance pour votre aide.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 15:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2548988#M149571</guid>
      <dc:creator>anyxs</dc:creator>
      <dc:date>2026-05-12T15:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: transmettre un JSON en input pour un tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2549083#M149573</link>
      <description>&lt;P&gt;Hello anyxs,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the &lt;STRONG&gt;Qlik community&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/esb-rest/trestclient" target="_blank"&gt;&lt;STRONG&gt;tRESTClient&lt;/STRONG&gt;&lt;/A&gt;, don’t manually concatenate JSON in the body. Instead: &lt;STRONG&gt;Prepare JSON with tMap / schema&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can&lt;STRONG&gt; &lt;/STRONG&gt;configure &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/esb-rest/trestclient" target="_blank"&gt;&lt;STRONG&gt;tRESTClient&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Method: POST&lt;/LI&gt;
 &lt;LI&gt;Body type: &lt;STRONG&gt;String&lt;/STRONG&gt;&lt;/LI&gt;
 &lt;LI&gt;Use column: select your JSON column&lt;/LI&gt;
 &lt;LI&gt;HTTP Header:Content-Type = application/json&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Recommended approach&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Use &lt;A href="https://help.qlik.com/talend/en-US/components/8.0/processing/twritejsonfield" target="_blank"&gt;&lt;STRONG&gt;tWriteJSONField &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;→ &lt;/STRONG&gt;&lt;A href="https://help.qlik.com/talend/en-US/components/8.0/esb-rest/trestclient" target="_blank"&gt;&lt;STRONG&gt;tRESTClient&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;`&lt;/STRONG&gt;&lt;BR /&gt;(avoids string errors and ensures valid JSON formatting)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In short, you can generate JSON using schema-based components, then pass it as a body string with application/json header.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 13:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2549083#M149573</guid>
      <dc:creator>Rahul_Kale</dc:creator>
      <dc:date>2026-05-13T13:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: transmettre un JSON en input pour un tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2549093#M149574</link>
      <description>&lt;P&gt;Thank you for your answer!&lt;/P&gt;
&lt;P&gt;I am trying to follow your recommended approach using tWriteJSONField → tRESTClient, but I am struggling with the tWriteJSONField configuration.&lt;/P&gt;
&lt;P&gt;I have:&lt;BR /&gt;- A tFixedFlowInput with 3 columns: username (String), password (String), body (String)&lt;BR /&gt;- The JSON structure configured with username and password mapped under rootTag&lt;/P&gt;
&lt;P&gt;However, I get the following error:&lt;BR /&gt;"Le paramètre (Boucle JSON) doit avoir au moins une valeur"&lt;BR /&gt;(The JSON Loop parameter must have at least one value)&lt;/P&gt;
&lt;P&gt;Could you please clarify:&lt;BR /&gt;1. How to properly configure the JSON loop in tWriteJSONField?&lt;BR /&gt;2. How to configure the "Body type: String" and "Use column" in tRESTClient? I cannot find these fields in my version.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 14:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2549093#M149574</guid>
      <dc:creator>anyxs</dc:creator>
      <dc:date>2026-05-13T14:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: transmettre un JSON en input pour un tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2549153#M149575</link>
      <description>&lt;P&gt;You’re very close—your issue comes from how &lt;STRONG&gt;tWriteJSONField expects a loop (array context)&lt;/STRONG&gt; and how &lt;STRONG&gt;tRESTClient consumes the body&lt;/STRONG&gt;.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN style="font-size:14px;"&gt;1. JSON Loop (tWriteJSONField)&lt;/SPAN&gt;&lt;/H3&gt;
&lt;UL&gt;
 &lt;LI&gt;Set: $&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Required (one JSON per row), otherwise you get the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN style="font-size:14px;"&gt;2. tRESTClient body config&lt;/SPAN&gt;&lt;/H3&gt;
&lt;UL&gt;
 &lt;LI&gt;Your version &lt;STRONG&gt;does NOT show “Body type / Use column”&lt;/STRONG&gt;&lt;/LI&gt;
 &lt;LI&gt;It &lt;STRONG&gt;automatically uses a column named string&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;Output JSON → jsonBody&lt;/LI&gt;
 &lt;LI&gt;In tMap:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;jsonBody → string&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN style="font-size:14px;"&gt;Final setup&lt;/SPAN&gt;&lt;/H3&gt;
&lt;UL&gt;
 &lt;LI&gt;tWriteJSONField
  &lt;UL&gt;
   &lt;LI&gt;JSON Loop = $&lt;/LI&gt;
   &lt;LI&gt;Output = jsonBody&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
 &lt;LI&gt;tMap
  &lt;UL&gt;
   &lt;LI&gt;jsonBody → string&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
 &lt;LI&gt;tRESTClient
  &lt;UL&gt;
   &lt;LI&gt;POST + JSON&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Tip: For simple cases, skip tWriteJSONField and build JSON directly in tMap.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 16:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/transmettre-un-JSON-en-input-pour-un-tRestClient/m-p/2549153#M149575</guid>
      <dc:creator>Rahul_Kale</dc:creator>
      <dc:date>2026-05-14T16:04:13Z</dc:date>
    </item>
  </channel>
</rss>

