<?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: [resolved] Missing values when using tWriteJsonField in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Missing-values-when-using-tWriteJsonField/m-p/2299844#M72147</link>
    <description>I figured out that you don't only need a array class, but also a element set as loop value. For the example I the OP it should look like this: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG6p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134845i9ADD5C83837A05E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG6p.png" alt="0683p000009MG6p.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Mon, 12 Dec 2016 12:08:27 GMT</pubDate>
    <dc:creator>Aukema</dc:creator>
    <dc:date>2016-12-12T12:08:27Z</dc:date>
    <item>
      <title>[resolved] Missing values when using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Missing-values-when-using-tWriteJsonField/m-p/2299843#M72146</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I want to create the following JSON file:&lt;BR /&gt;{&lt;BR /&gt;"level1": {&lt;BR /&gt;"level2": [{&lt;BR /&gt;"level3": {&lt;BR /&gt;"newColumn2": "level3value"&lt;BR /&gt;},&lt;BR /&gt;"newColumn1": "level2value"&lt;BR /&gt;}],&lt;BR /&gt;"newColumn": "level1value"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;(note the array I use for level2)&lt;BR /&gt;&lt;BR /&gt;I am using tWriteJsonField to achieve this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Job overview:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG6f.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133459i69E22547B638476C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG6f.png" alt="0683p000009MG6f.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using a simple sample configuration to simplify some things.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG6k.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149884iD9BCA1A32A1706C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG6k.png" alt="0683p000009MG6k.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Finally I created three levels in my output JSON string and added a class attribute in order to achieve the array on the second level&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFsK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155566i70E68F8EFB524EAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFsK.png" alt="0683p000009MFsK.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But when running this job, some information is lost and I cannot find a solution to prevent this. The final result looks like this:&lt;BR /&gt;{&lt;BR /&gt;"level1": {&lt;BR /&gt;"level2": [{&lt;BR /&gt;"newColumn2": "level3value"&lt;BR /&gt;}, "level2value"],&lt;BR /&gt;"newColumn": "level1value"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The array is there, but the Level3 header is lost.&lt;BR /&gt;&lt;BR /&gt;Is there any solution for this?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 10:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Missing-values-when-using-tWriteJsonField/m-p/2299843#M72146</guid>
      <dc:creator>Aukema</dc:creator>
      <dc:date>2016-12-12T10:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Missing values when using tWriteJsonField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Missing-values-when-using-tWriteJsonField/m-p/2299844#M72147</link>
      <description>I figured out that you don't only need a array class, but also a element set as loop value. For the example I the OP it should look like this: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MG6p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134845i9ADD5C83837A05E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MG6p.png" alt="0683p000009MG6p.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Missing-values-when-using-tWriteJsonField/m-p/2299844#M72147</guid>
      <dc:creator>Aukema</dc:creator>
      <dc:date>2016-12-12T12:08:27Z</dc:date>
    </item>
  </channel>
</rss>

