<?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 Importing data from Map to JSON output file in Talend Data Catalog</title>
    <link>https://community.qlik.com/t5/Talend-Data-Catalog/Importing-data-from-Map-to-JSON-output-file/m-p/2324553#M286</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt; 
&lt;P&gt;I need help about this case....&lt;/P&gt; 
&lt;P&gt;I've imported data from xml file, did some calculations and now i want to store data in JSON file in structure like this:&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"type": "FeatureCollection",&lt;BR /&gt;"crs": {&lt;BR /&gt;"type": "name",&lt;BR /&gt;"properties": {&lt;BR /&gt;"name": "urn&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;gc:def:crs&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;GC:1.3:CRS84"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"features": [&lt;BR /&gt;{&lt;BR /&gt;"type": "Feature",&lt;BR /&gt;"properties": {&lt;BR /&gt;"city": "Bratislava - Staré Mesto",&lt;BR /&gt;"county": "Bratislava I",&lt;BR /&gt;"region": "Bratislavský",&lt;BR /&gt;"latitude": 48.140589,&lt;BR /&gt;"longitude": 17.112327&lt;BR /&gt;},&lt;BR /&gt;"geometry": {&lt;BR /&gt;"type": "Point",&lt;BR /&gt;"coordinates": [&lt;BR /&gt;17.112327,&lt;BR /&gt;48.140589&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;},&lt;/P&gt; 
&lt;P&gt;----------------------------------------------------------------------------------------------&lt;/P&gt; 
&lt;P&gt;This is what i get:&lt;/P&gt; 
&lt;P&gt;----------------------------------------------------------------------------------------------&lt;/P&gt; 
&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"type3": null,&lt;BR /&gt;"type2": null,&lt;BR /&gt;"city": "{\"type\":\"FeatureCollection\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"urn&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;gc:def:crs&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;GC:1.3:CRS84\"}},\"features\":{\"type\":\"Feature\",\"properties\":{\"city\":\"Praha\",\"county\":[],\"region\":\"Hlavní město Praha\",\"latitude\":\"50.08455284219091\",\"longitude\":\"14.417782158070091\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"50.08455284219091\",\"14.417782158070091\"]}}}",&lt;BR /&gt;"latitude": null,&lt;BR /&gt;"name": null,&lt;BR /&gt;"county": null,&lt;BR /&gt;"region": null,&lt;BR /&gt;"type": null,&lt;BR /&gt;"type1": null,&lt;BR /&gt;"longitude": null&lt;BR /&gt;},&lt;/P&gt; 
&lt;P&gt;I don't need these columns with null and I don't know how to get rid of them.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what i have in tWriteJSONFile:&lt;/P&gt; 
&lt;P&gt;I&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.PNG" style="width: 778px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7HA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135293i49B0CA916AC8043E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7HA.png" alt="0683p000009M7HA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is my job:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7HK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131819i86441B1C9FF45E05/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7HK.png" alt="0683p000009M7HK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And this is my output file and i think that here is the problem,but just don't know how to resolve it.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture5.PNG" style="width: 975px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7HP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146451iC26DBD6DD3168BAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7HP.png" alt="0683p000009M7HP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;if you have any idea i would be more than grateful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;BR,&lt;/P&gt; 
&lt;P&gt;Tanja&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:41:40 GMT</pubDate>
    <dc:creator>tanjaj</dc:creator>
    <dc:date>2024-11-16T04:41:40Z</dc:date>
    <item>
      <title>Importing data from Map to JSON output file</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/Importing-data-from-Map-to-JSON-output-file/m-p/2324553#M286</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt; 
&lt;P&gt;I need help about this case....&lt;/P&gt; 
&lt;P&gt;I've imported data from xml file, did some calculations and now i want to store data in JSON file in structure like this:&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"type": "FeatureCollection",&lt;BR /&gt;"crs": {&lt;BR /&gt;"type": "name",&lt;BR /&gt;"properties": {&lt;BR /&gt;"name": "urn&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;gc:def:crs&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;GC:1.3:CRS84"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"features": [&lt;BR /&gt;{&lt;BR /&gt;"type": "Feature",&lt;BR /&gt;"properties": {&lt;BR /&gt;"city": "Bratislava - Staré Mesto",&lt;BR /&gt;"county": "Bratislava I",&lt;BR /&gt;"region": "Bratislavský",&lt;BR /&gt;"latitude": 48.140589,&lt;BR /&gt;"longitude": 17.112327&lt;BR /&gt;},&lt;BR /&gt;"geometry": {&lt;BR /&gt;"type": "Point",&lt;BR /&gt;"coordinates": [&lt;BR /&gt;17.112327,&lt;BR /&gt;48.140589&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;},&lt;/P&gt; 
&lt;P&gt;----------------------------------------------------------------------------------------------&lt;/P&gt; 
&lt;P&gt;This is what i get:&lt;/P&gt; 
&lt;P&gt;----------------------------------------------------------------------------------------------&lt;/P&gt; 
&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"type3": null,&lt;BR /&gt;"type2": null,&lt;BR /&gt;"city": "{\"type\":\"FeatureCollection\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"urn&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;gc:def:crs&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;GC:1.3:CRS84\"}},\"features\":{\"type\":\"Feature\",\"properties\":{\"city\":\"Praha\",\"county\":[],\"region\":\"Hlavní město Praha\",\"latitude\":\"50.08455284219091\",\"longitude\":\"14.417782158070091\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[\"50.08455284219091\",\"14.417782158070091\"]}}}",&lt;BR /&gt;"latitude": null,&lt;BR /&gt;"name": null,&lt;BR /&gt;"county": null,&lt;BR /&gt;"region": null,&lt;BR /&gt;"type": null,&lt;BR /&gt;"type1": null,&lt;BR /&gt;"longitude": null&lt;BR /&gt;},&lt;/P&gt; 
&lt;P&gt;I don't need these columns with null and I don't know how to get rid of them.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what i have in tWriteJSONFile:&lt;/P&gt; 
&lt;P&gt;I&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.PNG" style="width: 778px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7HA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135293i49B0CA916AC8043E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7HA.png" alt="0683p000009M7HA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is my job:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7HK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131819i86441B1C9FF45E05/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7HK.png" alt="0683p000009M7HK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And this is my output file and i think that here is the problem,but just don't know how to resolve it.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture5.PNG" style="width: 975px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7HP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146451iC26DBD6DD3168BAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7HP.png" alt="0683p000009M7HP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;if you have any idea i would be more than grateful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;BR,&lt;/P&gt; 
&lt;P&gt;Tanja&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/Importing-data-from-Map-to-JSON-output-file/m-p/2324553#M286</guid>
      <dc:creator>tanjaj</dc:creator>
      <dc:date>2024-11-16T04:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data from Map to JSON output file</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/Importing-data-from-Map-to-JSON-output-file/m-p/2324554#M287</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please try to replace null with another data or handle the string further after tWriteJSONFile.&lt;/P&gt;
&lt;P&gt;Maybe you could add a tJavaRow after tWriteJSONField and do this: output_row.output = input_row.output.replaceAll(",\"*\":\\", "");&lt;/P&gt;
&lt;P&gt;Let us know if it helps.&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;</description>
      <pubDate>Thu, 26 Sep 2019 10:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/Importing-data-from-Map-to-JSON-output-file/m-p/2324554#M287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-26T10:25:12Z</dc:date>
    </item>
  </channel>
</rss>

