<?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: TOS - replace dynamically a JSON key in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TOS-replace-dynamically-a-JSON-key/m-p/2198014#M1511</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;any help would be appreciated. Is it possible or not ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Yves&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2020 10:40:59 GMT</pubDate>
    <dc:creator>yvesR</dc:creator>
    <dc:date>2020-02-19T10:40:59Z</dc:date>
    <item>
      <title>TOS - replace dynamically a JSON key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-replace-dynamically-a-JSON-key/m-p/2198013#M1510</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using Talend Open Studio for Data Integration (no Enterprise licence) and I'm expected to produce a JSON to post it to a REST API.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The JSON has something "special" that I'm unable to develop : It has keys that can change :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{
       "clientID": "id1",
       "wishes": { 
                  "wishes1" : {
                               "code" : "CND",
                               "name" : "candy"
                  },
                  "wishes2" : {
                               "code" : "CHC",
                               "name" : "chocolate"
                  },&lt;BR /&gt;                  ...&lt;BR /&gt;                  "wishesX" : {
                               "code" : "xxx",&lt;BR /&gt;                               "name" : "XXXXXXXXXXXX"&lt;BR /&gt;                  }&lt;BR /&gt;        }
}&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As you can note, a key is changing : "wishes1", "wishes2", ... , "wishesX". OK, It looks like an array, but it is not ! and it's not me who has decided the API &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; !&lt;/P&gt; 
&lt;P&gt;I'm unable to do such thing with tWriteJSONField. Can anyone help me ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yves.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-replace-dynamically-a-JSON-key/m-p/2198013#M1510</guid>
      <dc:creator>yvesR</dc:creator>
      <dc:date>2024-11-16T03:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: TOS - replace dynamically a JSON key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-replace-dynamically-a-JSON-key/m-p/2198014#M1511</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;any help would be appreciated. Is it possible or not ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Yves&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 10:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-replace-dynamically-a-JSON-key/m-p/2198014#M1511</guid>
      <dc:creator>yvesR</dc:creator>
      <dc:date>2020-02-19T10:40:59Z</dc:date>
    </item>
  </channel>
</rss>

