<?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: JSON parsing multiple nested arrays in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242646#M29400</link>
    <description>&lt;P&gt;HI,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have used your input JSON file as reference and I got the following output using the job in below format. You may have to make minor changes based on your specific use case but it will give you a break through.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 909px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3a0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149686iB250DCBB6F0A5D69/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3a0.png" alt="0683p000009M3a0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 680px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3RO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152486i72874CBB6D851903/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3RO.png" alt="0683p000009M3RO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Coming to the component details, please refer the screen shot below for each component and schema details.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3aK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127994i67C1C40958CF8C22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3aK.png" alt="0683p000009M3aK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3aZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139351i7C15FF58BA4CC7A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3aZ.png" alt="0683p000009M3aZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3ae.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146474i22B6C6E7E6D11154/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3ae.png" alt="0683p000009M3ae.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope you got the path to resolve your use case. Please mark the topic as resolved if you are happy with the details. Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 06:51:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-09T06:51:44Z</dc:date>
    <item>
      <title>JSON parsing multiple nested arrays</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242644#M29398</link>
      <description>&lt;P&gt;Hi, I am trying to parse below json, which has multple nested lists (input &amp;amp; output), how do I parse it ?&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"status":"current",&lt;BR /&gt;"entry":[{&lt;BR /&gt;"item":{&lt;BR /&gt;"name":"Task1",&lt;BR /&gt;"identifier":"T00001",&lt;BR /&gt;"input":[{&lt;BR /&gt;"type":{&lt;BR /&gt;"text":"InputTask1-1"&lt;BR /&gt;},&lt;BR /&gt;"valueString":"Weekly"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"type":{&lt;BR /&gt;"text":"InputTask1-2"&lt;BR /&gt;},&lt;BR /&gt;"valueString":"Daily"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"output":[{&lt;BR /&gt;"type":{&lt;BR /&gt;"text":"OutputTask1-1"&lt;BR /&gt;},&lt;BR /&gt;"valueString":"Daily"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"type":{&lt;BR /&gt;"text":"OutputTask1-2"&lt;BR /&gt;},&lt;BR /&gt;"valueString":"Weekly"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"item":{&lt;BR /&gt;"name":"Task2",&lt;BR /&gt;"identifier":"T00002",&lt;BR /&gt;"input":[{&lt;BR /&gt;"type":{&lt;BR /&gt;"text":"InputTask2-1"&lt;BR /&gt;},&lt;BR /&gt;"valueString":"Weekly"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"type":{&lt;BR /&gt;"text":"InputTask2-2"&lt;BR /&gt;},&lt;BR /&gt;"valueString":"Daily"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"output":[{&lt;BR /&gt;"type":{&lt;BR /&gt;"text":"OutputTask2-1"&lt;BR /&gt;},&lt;BR /&gt;"valueString":"Daily"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"type":{&lt;BR /&gt;"text":"OutputTask2-2"&lt;BR /&gt;},&lt;BR /&gt;"valueString":"Weekly"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking for delimited output file like this:&lt;/P&gt;
&lt;P&gt;"TaskName"|"TaskId"|"InputName"|"InputValue"|"OutputName"|"OutputValue"&lt;BR /&gt;Task1|T00001|InputTask1-1|Weekly|outputDummyText|outputDummyValue&lt;BR /&gt;Task1|T00001|InputTask1-2|Daily|outputDummyText|outputDummyValue&lt;BR /&gt;Task1|T00001|inputDummyText|inputDummyValue|OutputTask1-1|Daily&lt;BR /&gt;Task1|T00001|inputDummyText|inputDummyValue|OutputTask1-2|Weekly&lt;BR /&gt;Task2|T00002|InputTask2-1|Weekly|outputDummyText|outputDummyValue&lt;BR /&gt;Task2|T00002|InputTask2-2|Daily|outputDummyText|outputDummyValue&lt;BR /&gt;Task2|T00002|inputDummyText|inputDummyValue|OutputTask2-1|Daily&lt;BR /&gt;Task2|T00002|inputDummyText|inputDummyValue|OutputTask2-2|Weekly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 23:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242644#M29398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-08T23:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: JSON parsing multiple nested arrays</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242645#M29399</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-04-08 at 5.41.04 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3Zb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138841iB4CEE6D9C58DB858/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Zb.png" alt="0683p000009M3Zb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 23:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242645#M29399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-08T23:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: JSON parsing multiple nested arrays</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242646#M29400</link>
      <description>&lt;P&gt;HI,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have used your input JSON file as reference and I got the following output using the job in below format. You may have to make minor changes based on your specific use case but it will give you a break through.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 909px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3a0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149686iB250DCBB6F0A5D69/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3a0.png" alt="0683p000009M3a0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 680px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3RO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152486i72874CBB6D851903/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3RO.png" alt="0683p000009M3RO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Coming to the component details, please refer the screen shot below for each component and schema details.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3aK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127994i67C1C40958CF8C22/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3aK.png" alt="0683p000009M3aK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3aZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139351i7C15FF58BA4CC7A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3aZ.png" alt="0683p000009M3aZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3ae.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146474i22B6C6E7E6D11154/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3ae.png" alt="0683p000009M3ae.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope you got the path to resolve your use case. Please mark the topic as resolved if you are happy with the details. Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 06:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242646#M29400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-09T06:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSON parsing multiple nested arrays</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242647#M29401</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I was able to parse a multi-nested JSON but have 2 questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. When parsing the data points in the second JSON, I'm getting double quotes and square brackets in the results (screenshot: Result.png). How do I parse these out in tExtractJSONFields? (I can use tReplace as a workaround but was wondering if this could be done in tExtractJSONFields)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If you check out the JSON.png, you'll see there are two instances of minQty and maxQty, one under filterType: "LOT_SIZE" and another under filterType: "MARKET_LOT_SIZE". Is there a way I can specify in tExtractJSONFields which one to select? For example, if I want to say pick the first one but ignore the second, how do I do that? Or if I want to say parse "LOT_SIZE" and ignore "MARKET_LOT_SIZE", how do I do that?&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lwgk"&gt;Job.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwyE"&gt;JSON.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lweb"&gt;Result.png&lt;/A&gt;</description>
      <pubDate>Tue, 08 Oct 2019 20:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242647#M29401</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2019-10-08T20:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: JSON parsing multiple nested arrays</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242648#M29402</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLA0AAO"&gt;@zalibra&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; Since your query is for a different use case, I would recommend to create a new post so that we will not dilute the original post context. While creating the post, please also add 5 sample input records, expected JSON output and current output you are getting.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 18:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-nested-arrays/m-p/2242648#M29402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-13T18:15:30Z</dc:date>
    </item>
  </channel>
</rss>

