<?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: Dynamic json schema in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363004#M127017</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So far, tWriteJSONField component only accepts a hard coded schema and does not support the dynamic datatype. This feature would make a lot of sense, however there's no easy way to transform JSON into a dynamic schema. JSON can have no or multiple loops. For this reason it's really hard to transform it to Dynamic schema.&lt;/P&gt;&lt;P&gt;It could be possible to create a routine that would:&lt;/P&gt;&lt;P&gt;public static Dynamic jsonToDynamic(String myJson)&lt;/P&gt;&lt;P&gt;But then you'd likely require a way to split the json into multiple jsons (i.e handle the loop) which could be achieved via tJavaFlex&lt;/P&gt;&lt;P&gt;Here is also a tWriteDynamicFields component which creates an output dynamic column from input columns.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/r/en-US/8.0/processing/twritedynamicfields" alt="https://help.talend.com/r/en-US/8.0/processing/twritedynamicfields" target="_blank"&gt;https://help.talend.com/r/en-US/8.0/processing/twritedynamicfields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it could help.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 01:34:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-30T01:34:03Z</dc:date>
    <item>
      <title>Dynamic json schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363003#M127016</link>
      <description>&lt;P&gt;I am currently trying to transfer data from an Oracle database to c4c via a rest client component. I use tdbinpout component to read the data, then tflowtoiterate, twritejson file, tmap and finally trestclient.&lt;/P&gt;&lt;P&gt;This is only possible if I hardcode the columns in the json file, but the number of columns in the source table can change and I want to read them dynamically. Since the twritejson component does not support a dynamic data type, I would like to know if there is a different approach I can use?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363003#M127016</guid>
      <dc:creator>DVasiljevic1698407385</dc:creator>
      <dc:date>2024-11-15T21:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic json schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363004#M127017</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So far, tWriteJSONField component only accepts a hard coded schema and does not support the dynamic datatype. This feature would make a lot of sense, however there's no easy way to transform JSON into a dynamic schema. JSON can have no or multiple loops. For this reason it's really hard to transform it to Dynamic schema.&lt;/P&gt;&lt;P&gt;It could be possible to create a routine that would:&lt;/P&gt;&lt;P&gt;public static Dynamic jsonToDynamic(String myJson)&lt;/P&gt;&lt;P&gt;But then you'd likely require a way to split the json into multiple jsons (i.e handle the loop) which could be achieved via tJavaFlex&lt;/P&gt;&lt;P&gt;Here is also a tWriteDynamicFields component which creates an output dynamic column from input columns.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/r/en-US/8.0/processing/twritedynamicfields" alt="https://help.talend.com/r/en-US/8.0/processing/twritedynamicfields" target="_blank"&gt;https://help.talend.com/r/en-US/8.0/processing/twritedynamicfields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it could help.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 01:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363004#M127017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-30T01:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic json schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363005#M127018</link>
      <description>&lt;P&gt;It is possible using Java code.  The idea is to get the Dynamic-Object and iterate through the columns and get the name and the value. Talend Studio ships with a JSON library and this can be used to create the json object per record. &lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 20:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363005#M127018</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2023-10-30T20:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic json schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363006#M127019</link>
      <description>&lt;P&gt;Thanks for your answer.  Can you give me more details or an example if you have done this before?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have enough experience in java.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 10:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-json-schema/m-p/2363006#M127019</guid>
      <dc:creator>DVasiljevic1698407385</dc:creator>
      <dc:date>2023-11-01T10:25:16Z</dc:date>
    </item>
  </channel>
</rss>

