<?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 how to add missing child array elements in json with tjson components in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-add-missing-child-array-elements-in-json-with-tjson/m-p/2321684#M91696</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;We are getting JSON file from MONGODB/DOCDB where in they dont store/send key when the value is null.we are not getting the standard structure as expected by tfileinputjson-&amp;gt;textractjson which is leading to the filtering of records.&lt;/P&gt; 
&lt;P&gt;is there any way to find out the missing arrays and replace them with null entries.&lt;/P&gt; 
&lt;P&gt;I have gone through the post&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqaPCAS" target="_blank"&gt;https://community.talend.com/t5/Archive/tFileInputJson-Arrays-with-missing-Child-Elements-Cause-Issue/td-p/175389&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;but my issue is different than the above.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for example:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{"data":&lt;BR /&gt;[{&lt;BR /&gt;"id":"1",&lt;BR /&gt;"name":"Arc",&lt;BR /&gt;"category":"normal",&lt;BR /&gt;"type":[{"id":"1",&lt;BR /&gt;"desc":"emp"&lt;BR /&gt;}]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id":"2",&lt;BR /&gt;"name":"siv",&lt;BR /&gt;"category":"abnormal",&lt;BR /&gt;"type":[{"id":"2",&lt;BR /&gt;"desc":"lead"&lt;BR /&gt;}]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id":"3",&lt;BR /&gt;"name":"kar",&lt;BR /&gt;"category":"soabnormal",&lt;BR /&gt;"type":[]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id":"4",&lt;BR /&gt;"name":"pras",&lt;BR /&gt;"category":"soveryabnormal"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id":"5"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for ids 3,4,5 i need to have&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"type":[{"id":"null",&lt;BR /&gt;"desc":"null"&lt;BR /&gt;}]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any immediate response will be very much helpful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance,&lt;/P&gt; 
&lt;P&gt;Archana&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:13:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T03:13:33Z</dc:date>
    <item>
      <title>how to add missing child array elements in json with tjson components in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-add-missing-child-array-elements-in-json-with-tjson/m-p/2321684#M91696</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;We are getting JSON file from MONGODB/DOCDB where in they dont store/send key when the value is null.we are not getting the standard structure as expected by tfileinputjson-&amp;gt;textractjson which is leading to the filtering of records.&lt;/P&gt; 
&lt;P&gt;is there any way to find out the missing arrays and replace them with null entries.&lt;/P&gt; 
&lt;P&gt;I have gone through the post&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqaPCAS" target="_blank"&gt;https://community.talend.com/t5/Archive/tFileInputJson-Arrays-with-missing-Child-Elements-Cause-Issue/td-p/175389&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;but my issue is different than the above.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for example:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{"data":&lt;BR /&gt;[{&lt;BR /&gt;"id":"1",&lt;BR /&gt;"name":"Arc",&lt;BR /&gt;"category":"normal",&lt;BR /&gt;"type":[{"id":"1",&lt;BR /&gt;"desc":"emp"&lt;BR /&gt;}]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id":"2",&lt;BR /&gt;"name":"siv",&lt;BR /&gt;"category":"abnormal",&lt;BR /&gt;"type":[{"id":"2",&lt;BR /&gt;"desc":"lead"&lt;BR /&gt;}]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id":"3",&lt;BR /&gt;"name":"kar",&lt;BR /&gt;"category":"soabnormal",&lt;BR /&gt;"type":[]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id":"4",&lt;BR /&gt;"name":"pras",&lt;BR /&gt;"category":"soveryabnormal"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id":"5"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for ids 3,4,5 i need to have&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"type":[{"id":"null",&lt;BR /&gt;"desc":"null"&lt;BR /&gt;}]&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any immediate response will be very much helpful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance,&lt;/P&gt; 
&lt;P&gt;Archana&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-add-missing-child-array-elements-in-json-with-tjson/m-p/2321684#M91696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:13:33Z</dc:date>
    </item>
  </channel>
</rss>

