<?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: Rewriting of an array from one local JSON file to another problem. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Rewriting-of-an-array-from-one-local-JSON-file-to-another/m-p/2289685#M63038</link>
    <description>as variant, something like this: 
&lt;BR /&gt;in Your case You can test 2 lines: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;$.product[1].eventId&lt;BR /&gt;$.product[1].attributeGroup[_star_]&lt;/PRE&gt; 
&lt;BR /&gt;product[1] - first event, and etc 
&lt;BR /&gt;attributeGroup - will be transferred as single element with all dependencies, if need parse them also - need edit, like 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;$.product[1].attributeGroup[1].groupid&lt;BR /&gt;$.product[1].attributeGroup[1].name&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;after this single record easy parsed to flat structure or other JSON file, just loop over all 
&lt;BR /&gt;it small example from HubSpot project, in Your case result[XXX] need change to product[XXX] 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFsp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129487i1F3634E34CFD0556/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFsp.png" alt="0683p000009MFsp.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFx5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151411i857E7D7487FB024F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFx5.png" alt="0683p000009MFx5.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Wed, 16 Nov 2016 11:17:22 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2016-11-16T11:17:22Z</dc:date>
    <item>
      <title>Rewriting of an array from one local JSON file to another problem.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Rewriting-of-an-array-from-one-local-JSON-file-to-another/m-p/2289684#M63037</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;I have a problem with Talend with creating a JSON file. I'm trying to extract the array from locally stored JSON file and rewrite it to another local JSON file excluding one of the field ( the most important is the rewriting the complete array in the same structure). I tried it with tExtractJSONfields but the result was like this. What I'm getting is an object in the field with&amp;nbsp;all the data at the same time or separated fields without array structure.&lt;BR /&gt;I've tried all the tutorials but it's simply not working.&lt;BR /&gt;Is anyone knowing how to do it? And able to post a small guidance how to configure the components.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Orginal JSON file:&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;"product":[&lt;BR /&gt;{&lt;BR /&gt;"eventId": "222-ewq-222-erwf",&lt;BR /&gt;"partName": "aaaaaaaa",&lt;BR /&gt;"attributeGroup":[&lt;BR /&gt;{&lt;BR /&gt;"groupId": "GroupNaterId:123456768",&lt;BR /&gt;"name": null&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"groupId": "GroupNaterId:123456768",&lt;BR /&gt;"name": "noName"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"eventId": "111-ewq-111-erwf",&lt;BR /&gt;"partName": "bbbbbbb",&lt;BR /&gt;"attributeGroup":[&lt;BR /&gt;{&lt;BR /&gt;"groupId": "GroupNaterId:1245543",&lt;BR /&gt;"name": null&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"groupId": "GroupNaterId:1247777",&lt;BR /&gt;"name": "productName1"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"groupId": "GroupNaterId:12333333",&lt;BR /&gt;"name": "productName2"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards: Peter&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFzo.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152819iF772853A111419E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFzo.jpg" alt="0683p000009MFzo.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Rewriting-of-an-array-from-one-local-JSON-file-to-another/m-p/2289684#M63037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rewriting of an array from one local JSON file to another problem.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Rewriting-of-an-array-from-one-local-JSON-file-to-another/m-p/2289685#M63038</link>
      <description>as variant, something like this: 
&lt;BR /&gt;in Your case You can test 2 lines: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;$.product[1].eventId&lt;BR /&gt;$.product[1].attributeGroup[_star_]&lt;/PRE&gt; 
&lt;BR /&gt;product[1] - first event, and etc 
&lt;BR /&gt;attributeGroup - will be transferred as single element with all dependencies, if need parse them also - need edit, like 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;$.product[1].attributeGroup[1].groupid&lt;BR /&gt;$.product[1].attributeGroup[1].name&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;after this single record easy parsed to flat structure or other JSON file, just loop over all 
&lt;BR /&gt;it small example from HubSpot project, in Your case result[XXX] need change to product[XXX] 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFsp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129487i1F3634E34CFD0556/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFsp.png" alt="0683p000009MFsp.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFx5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151411i857E7D7487FB024F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFx5.png" alt="0683p000009MFx5.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Rewriting-of-an-array-from-one-local-JSON-file-to-another/m-p/2289685#M63038</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-16T11:17:22Z</dc:date>
    </item>
  </channel>
</rss>

