<?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: How make a dynamic JSON for mongoDB ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308157#M144232</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here's my approach for this problem.&lt;/P&gt; 
&lt;P&gt;You route your SQL input to a tWriteJSONField that generates the JSON, and then you send it to a tMongoDBRow using a function or a command.&lt;/P&gt; 
&lt;P&gt;Here's an example, using a tFixedFlowInput to generate some rows, just replace it with your Db row input.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2l7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147593i85B8FD6DB41555E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2l7.png" alt="0683p000009M2l7.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Input&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSON schema" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2lC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144574i321E87DC4DCDBAAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2lC.png" alt="0683p000009M2lC.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JSON schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSON tree" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M13K.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153601i1CB5AA798C63603A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M13K.png" alt="0683p000009M13K.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JSON tree&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;("Remove root node" is important !)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output command" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2lH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130488i93549CA15504624B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2lH.png" alt="0683p000009M2lH.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output command&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope this will help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;--&lt;BR /&gt;Pierre Réveillon&lt;/P&gt;</description>
    <pubDate>Sat, 23 Feb 2019 20:00:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-23T20:00:17Z</dc:date>
    <item>
      <title>How make a dynamic JSON for mongoDB ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308152#M144227</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like to insert data into a NoSQL DataBase (MongoDB).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The problem is I the format of my Json will change very often, example:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{&lt;/P&gt; 
&lt;P&gt;name: "okoo",&lt;/P&gt; 
&lt;P&gt;quality: "good"&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;OR&lt;/P&gt; 
&lt;P&gt;{&lt;/P&gt; 
&lt;P&gt;designation: "comportement",&lt;/P&gt; 
&lt;P&gt;type: "forge"&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I can't know what will it be in my JSON.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So my question is how can I send a JSON to the component tMongoDBOutput, because I have the impression it needs a shema!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308152#M144227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How make a dynamic JSON for mongoDB ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308153#M144228</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Feature of dynamic schema is not supported for MongoDB components as of now.&lt;/P&gt; 
&lt;P&gt;A new feature jira issue has been submitted to address it in future release.&lt;A title="https://jira.talendforge.org/browse/TBD-3134" href="https://jira.talendforge.org/browse/TBD-3134" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TBD-3134&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Could you try to make use of&amp;nbsp;&lt;SPAN&gt;tExtractJson components and meet the requirement?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Sabrina&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308153#M144228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: How make a dynamic JSON for mongoDB ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308154#M144229</link>
      <description>&lt;P&gt;This&amp;nbsp;new feature was created on February 2016, do you know if they are progressing?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm trying to make a dynamic json&amp;nbsp;with tJavaRow and send it to tMongoDbOutput, but it's not working. Do you have any other ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 09:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308154#M144229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-30T09:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: How make a dynamic JSON for mongoDB ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308155#M144230</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Feel free to vote for this new feature jira issue.&lt;/P&gt; 
&lt;P&gt;Depending up on your usecase, are you able to make use of&amp;nbsp;&lt;SPAN&gt;tExtractJson components and meet the requirement else one can restrict to use set schema option?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Sabrina&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 09:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308155#M144230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-30T09:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: How make a dynamic JSON for mongoDB ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308156#M144231</link>
      <description>&lt;P&gt;I'll explain you my use case, maybe you'll have an idea I didn't think.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled Diagram.png" style="width: 621px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyV2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145260i110816FED7327005/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyV2.png" alt="0683p000009LyV2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I'm listing a SQL Server&amp;nbsp;Database, and when there is an insert or update in this Database, I get the new Data.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The&amp;nbsp;row that will be returned to me may be different depending on the table that has just been modified (So I need a dynamic schema).&lt;/P&gt; 
&lt;P&gt;When I have this new data, I want to insert it in MongoDB. The problem is, my schema is dynamic and I can't push this dynamic schema to MongoDB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What do you think?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 10:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308156#M144231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-30T10:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How make a dynamic JSON for mongoDB ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308157#M144232</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here's my approach for this problem.&lt;/P&gt; 
&lt;P&gt;You route your SQL input to a tWriteJSONField that generates the JSON, and then you send it to a tMongoDBRow using a function or a command.&lt;/P&gt; 
&lt;P&gt;Here's an example, using a tFixedFlowInput to generate some rows, just replace it with your Db row input.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Input" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2l7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147593i85B8FD6DB41555E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2l7.png" alt="0683p000009M2l7.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Input&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSON schema" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2lC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144574i321E87DC4DCDBAAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2lC.png" alt="0683p000009M2lC.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JSON schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSON tree" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M13K.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153601i1CB5AA798C63603A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M13K.png" alt="0683p000009M13K.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JSON tree&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;("Remove root node" is important !)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output command" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2lH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130488i93549CA15504624B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2lH.png" alt="0683p000009M2lH.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output command&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope this will help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;--&lt;BR /&gt;Pierre Réveillon&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 20:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308157#M144232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-23T20:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How make a dynamic JSON for mongoDB ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308158#M144233</link>
      <description>Can you provide me a sample like above to do insert on update on json object</description>
      <pubDate>Thu, 16 Apr 2020 18:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-make-a-dynamic-JSON-for-mongoDB/m-p/2308158#M144233</guid>
      <dc:creator>kanuparthy</dc:creator>
      <dc:date>2020-04-16T18:42:13Z</dc:date>
    </item>
  </channel>
</rss>

