<?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 Create a Json and send to BigQuery as a nested fields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-a-Json-and-send-to-BigQuery-as-a-nested-fields/m-p/2320639#M90761</link>
    <description>&lt;P&gt;&amp;nbsp;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create the following flow:&lt;/P&gt;&lt;P&gt;1. Read from 3 DB tables and join them&amp;nbsp; (Done)&lt;/P&gt;&lt;P&gt;2. Create from the DB data a JSON field (using tWriteJSONField) - Done&lt;/P&gt;&lt;P&gt;3. Send the results to other DB (Big Query) in the following format:&amp;nbsp;column 1: string, column 2: JSON&lt;BR /&gt;&lt;BR /&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tWriteJSONField output is many JSONs string as the following:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;(url is the loop element).&lt;/P&gt;&lt;P&gt;{"url":"&lt;A href="http://google.com/&amp;quot;,&amp;quot;id&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;28&amp;quot;,&amp;quot;sub_type&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;exp&amp;quot;:[],&amp;quot;or&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;date&amp;quot;:&amp;quot;19-05-2015&amp;quot;,&amp;quot;num&amp;quot;:[]}}&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;http://google.com/","id":"3","type":"28","sub_type":"3","exp":[],"or":"3","date":"19-05-2015","num":[]}}&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the final format to be as the follow:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;A href="http://google.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://google.com/&lt;/A&gt;"&lt;STRONG&gt;,&lt;/STRONG&gt; {"id":"3","type":"28","sub_type":"3","exp":[],"or":"3","date":"19-05-2015","num":[]}}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the scheme I defined in&amp;nbsp;&lt;SPAN&gt;tWriteJSONField , the JSON string appears in the column "url" and the rest are null / 0:&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;|0 |null|null&amp;nbsp; &amp;nbsp; |null|null|null|null|null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I define the JSON scheme that will generate only the "url" and the JSON string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshots are attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:32:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T08:32:14Z</dc:date>
    <item>
      <title>Create a Json and send to BigQuery as a nested fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-a-Json-and-send-to-BigQuery-as-a-nested-fields/m-p/2320639#M90761</link>
      <description>&lt;P&gt;&amp;nbsp;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to create the following flow:&lt;/P&gt;&lt;P&gt;1. Read from 3 DB tables and join them&amp;nbsp; (Done)&lt;/P&gt;&lt;P&gt;2. Create from the DB data a JSON field (using tWriteJSONField) - Done&lt;/P&gt;&lt;P&gt;3. Send the results to other DB (Big Query) in the following format:&amp;nbsp;column 1: string, column 2: JSON&lt;BR /&gt;&lt;BR /&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;tWriteJSONField output is many JSONs string as the following:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;(url is the loop element).&lt;/P&gt;&lt;P&gt;{"url":"&lt;A href="http://google.com/&amp;quot;,&amp;quot;id&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;28&amp;quot;,&amp;quot;sub_type&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;exp&amp;quot;:[],&amp;quot;or&amp;quot;:&amp;quot;3&amp;quot;,&amp;quot;date&amp;quot;:&amp;quot;19-05-2015&amp;quot;,&amp;quot;num&amp;quot;:[]}}&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;http://google.com/","id":"3","type":"28","sub_type":"3","exp":[],"or":"3","date":"19-05-2015","num":[]}}&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the final format to be as the follow:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;A href="http://google.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://google.com/&lt;/A&gt;"&lt;STRONG&gt;,&lt;/STRONG&gt; {"id":"3","type":"28","sub_type":"3","exp":[],"or":"3","date":"19-05-2015","num":[]}}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the scheme I defined in&amp;nbsp;&lt;SPAN&gt;tWriteJSONField , the JSON string appears in the column "url" and the rest are null / 0:&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;|0 |null|null&amp;nbsp; &amp;nbsp; |null|null|null|null|null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I define the JSON scheme that will generate only the "url" and the JSON string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshots are attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Emma&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-a-Json-and-send-to-BigQuery-as-a-nested-fields/m-p/2320639#M90761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:32:14Z</dc:date>
    </item>
  </channel>
</rss>

