<?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 Issue in mapping json file with comment in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Issue-in-mapping-json-file-with-comment/m-p/2198026#M1523</link>
    <description>&lt;P&gt;I am trying to map data out of a JSON file. However, my file has comments at the beginning. If I remove them, job runs smoothly with no issues.&lt;/P&gt; 
&lt;P&gt;However, If I use the file as is with the comment, my log comes out blank.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The job design is quite simple:&lt;/P&gt; 
&lt;P&gt;tFileInputJSON-&amp;gt;tLogRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Eventually the main job is to map the JSON file columns into MongoDB (tFileInputJSON-&amp;gt;tMap-&amp;gt;tMongoDBOutput), but that was not a problem. Again, the job runs smoothly when I remove the comment at the beginning.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is how the file starts, including the comment at the beginning in &lt;FONT color="#FF0000"&gt;RED&lt;/FONT&gt;.&lt;/P&gt; 
&lt;P&gt;Hopefully someone can advise.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;[{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"_Disclaimer" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"disclaimer" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"sectionHeader" : "Disclaimer",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line1" : "Line 1 content.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line2" : "Line 2 content",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line3" : "Line 3 content"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"disclaimerOnDataProtection" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"sectionHeader" : "Disclaimer on Data Protection",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line1" : "Line 1 content.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line2" : "Line 2 content",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line3" : "Line 3 content",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line4" : "Line 4 content"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"registerDownload" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"sectionHeader" : "Register Download",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line1" : "Line 1 content",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line2" : "Line 2 content"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;}],&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;[{&lt;BR /&gt;"OwnerID" : "data 1",&lt;BR /&gt;"EntityCode" : "data 2",&lt;BR /&gt;"EntityType" : "data 3",&lt;BR /&gt;"Services" : [{&lt;BR /&gt;"Service 1" : ["data 1", "data 2", "data 3"]&lt;BR /&gt;}],&lt;BR /&gt;"Properties" : [{&lt;BR /&gt;"Property 1" : "data 1"&lt;BR /&gt;}, {&lt;BR /&gt;"Property 2" : "data2"&lt;BR /&gt;}],&lt;BR /&gt;"__EBA_EntityVersion" : "20190807152443537"&lt;BR /&gt;}]&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:24:38 GMT</pubDate>
    <dc:creator>cd160</dc:creator>
    <dc:date>2024-11-16T04:24:38Z</dc:date>
    <item>
      <title>Issue in mapping json file with comment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-in-mapping-json-file-with-comment/m-p/2198026#M1523</link>
      <description>&lt;P&gt;I am trying to map data out of a JSON file. However, my file has comments at the beginning. If I remove them, job runs smoothly with no issues.&lt;/P&gt; 
&lt;P&gt;However, If I use the file as is with the comment, my log comes out blank.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The job design is quite simple:&lt;/P&gt; 
&lt;P&gt;tFileInputJSON-&amp;gt;tLogRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Eventually the main job is to map the JSON file columns into MongoDB (tFileInputJSON-&amp;gt;tMap-&amp;gt;tMongoDBOutput), but that was not a problem. Again, the job runs smoothly when I remove the comment at the beginning.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is how the file starts, including the comment at the beginning in &lt;FONT color="#FF0000"&gt;RED&lt;/FONT&gt;.&lt;/P&gt; 
&lt;P&gt;Hopefully someone can advise.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;[{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"_Disclaimer" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"disclaimer" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"sectionHeader" : "Disclaimer",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line1" : "Line 1 content.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line2" : "Line 2 content",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line3" : "Line 3 content"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"disclaimerOnDataProtection" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"sectionHeader" : "Disclaimer on Data Protection",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line1" : "Line 1 content.",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line2" : "Line 2 content",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line3" : "Line 3 content",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line4" : "Line 4 content"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"registerDownload" : {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"sectionHeader" : "Register Download",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line1" : "Line 1 content",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;"line2" : "Line 2 content"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;}],&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;[{&lt;BR /&gt;"OwnerID" : "data 1",&lt;BR /&gt;"EntityCode" : "data 2",&lt;BR /&gt;"EntityType" : "data 3",&lt;BR /&gt;"Services" : [{&lt;BR /&gt;"Service 1" : ["data 1", "data 2", "data 3"]&lt;BR /&gt;}],&lt;BR /&gt;"Properties" : [{&lt;BR /&gt;"Property 1" : "data 1"&lt;BR /&gt;}, {&lt;BR /&gt;"Property 2" : "data2"&lt;BR /&gt;}],&lt;BR /&gt;"__EBA_EntityVersion" : "20190807152443537"&lt;BR /&gt;}]&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-in-mapping-json-file-with-comment/m-p/2198026#M1523</guid>
      <dc:creator>cd160</dc:creator>
      <dc:date>2024-11-16T04:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in mapping json file with comment</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-in-mapping-json-file-with-comment/m-p/2198027#M1524</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;If the file always has the same number of lines, you can use tSampleRow to remove the comments and create a new file before extracting JSON data, eg:&lt;BR /&gt;tfileinputFullRow--main--tSampleRow--tFileOutputDelimited&lt;BR /&gt;|&lt;BR /&gt;onsubjobok&lt;BR /&gt;|tFileInputJSON-&amp;gt;tMap-&amp;gt;tMongoDBOutput&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;on tSampleRow: set the Range as: ""23..36""&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 10:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-in-mapping-json-file-with-comment/m-p/2198027#M1524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-15T10:03:18Z</dc:date>
    </item>
  </channel>
</rss>

