<?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: Seperate each JSON object in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329143#M98358</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006yqfZAAQ"&gt;@nfz11&lt;/A&gt;, my bad, I am really sorry for this mistake will never ever let this happen again.&amp;nbsp;&lt;BR /&gt;Thank you for your valuable time.&lt;BR /&gt;Apologies,&lt;BR /&gt;Yogesh.&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jul 2019 12:02:15 GMT</pubDate>
    <dc:creator>kuwaryogi27</dc:creator>
    <dc:date>2019-07-13T12:02:15Z</dc:date>
    <item>
      <title>Seperate each JSON object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329138#M98353</link>
      <description>&lt;P&gt;I have a use case where we read an excel using java code since the schema is not fixed.&lt;BR /&gt;and create a JSON out of it and the JSON that is getting created is attached in the TEST.json file.&lt;BR /&gt;In this file, I want to separate out the content [ ] from each map&lt;BR /&gt;In a globalmap, we have multiple HashMaps and we need to get the JSON's row by row so that it can be sent to ActiveMQ.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ActiveMQ.PNG" style="width: 538px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6HM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136466iB78B480103380C65/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6HM.png" alt="0683p000009M6HM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JSON.PNG" style="width: 533px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6I9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136352i416F33F3747AAE2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6I9.png" alt="0683p000009M6I9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 12:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329138#M98353</guid>
      <dc:creator>kuwaryogi27</dc:creator>
      <dc:date>2019-07-10T12:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate each JSON object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329139#M98354</link>
      <description>&lt;P&gt;Use a tExtractJSONFields component.&amp;nbsp; The key part is configuring the loop query so you may want to learn about JSONPath or XPath.&amp;nbsp; Here is the input and output from a test job:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Starting job TestSeparateJsonObject at 00:42 11/07/2019.

[statistics] connecting to socket on port 3995
[statistics] connected
.--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
|                                                                                    #1. tLogRow_1                                                                                     |
+------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| key  | value                                                                                                                                                                         |
+------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| json | {"returnMap1": {"content":[{"id":1111111,"label":"Testing","languageCode":"en_US"}]},"returnMap2": {"content":[{"id":2222222,"label":"New Testing","languageCode":"en_GB"}]}} |
+------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

.------------------------.
|     #1. tLogRow_2      |
+--------------+---------+
| key          | value   |
+--------------+---------+
| id           | 1111111 |
| label        | Testing |
| languageCode | en_US   |
+--------------+---------+

.----------------------------.
|       #2. tLogRow_2        |
+--------------+-------------+
| key          | value       |
+--------------+-------------+
| id           | 2222222     |
| label        | New Testing |
| languageCode | en_GB       |
+--------------+-------------+

[statistics] disconnected

Job TestSeparateJsonObject ended at 00:42 11/07/2019. [exit code=0]&lt;/PRE&gt; 
&lt;P&gt;Here is a screenshot of the test job showing the details of the&amp;nbsp;tExtractJSONFields component where I use JSONPath in the loop query:&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-inline" image-alt="json-object.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Id.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138352i08B62C7076565016/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Id.png" alt="0683p000009M6Id.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 05:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329139#M98354</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-07-11T05:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate each JSON object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329140#M98355</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006yqfZAAQ"&gt;@nfz11&lt;/A&gt;&amp;nbsp;, the JSON I attached was a sample one the real JSON is a bit complex I tried tWriteJsonFileds but it was not suitable for the current scenario. So the best way to achieve this was making separate JSON files and reading it through tFileList --&amp;gt; tFileInputRaw --&amp;gt; tJavaRow (read the message and send it to next component as string) --&amp;gt; tMomOutput.&lt;BR /&gt;&lt;BR /&gt;As of now, the task has been solved. Thank you for the guidance and really appreciate it.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329140#M98355</guid>
      <dc:creator>kuwaryogi27</dc:creator>
      <dc:date>2019-07-11T09:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate each JSON object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329141#M98356</link>
      <description>&lt;P&gt;Attached is the job screenshot to achieve this task.&lt;BR /&gt;Regards,&lt;BR /&gt;Yogesh.&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-inline" image-alt="ReadExcelSendJSONToActiveMQ.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Iz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136208i5E60CCFFD1D115E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Iz.png" alt="0683p000009M6Iz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329141#M98356</guid>
      <dc:creator>kuwaryogi27</dc:creator>
      <dc:date>2019-07-11T09:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate each JSON object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329142#M98357</link>
      <description>&lt;P&gt;That is good that you solved it, but next time be clearer about what you are asking about and give relevant sample input in text format.&amp;nbsp; People are going to try to help you and if you give meaningless sample data and ask the question in an unclear manner it wastes their time.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329142#M98357</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-07-11T15:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate each JSON object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329143#M98358</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006yqfZAAQ"&gt;@nfz11&lt;/A&gt;, my bad, I am really sorry for this mistake will never ever let this happen again.&amp;nbsp;&lt;BR /&gt;Thank you for your valuable time.&lt;BR /&gt;Apologies,&lt;BR /&gt;Yogesh.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 12:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329143#M98358</guid>
      <dc:creator>kuwaryogi27</dc:creator>
      <dc:date>2019-07-13T12:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate each JSON object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329144#M98359</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPQjAAO"&gt;@ykasture&lt;/A&gt;&amp;nbsp;thank you for your apology. &amp;nbsp;You are not the only one who does it, believe me, I see it more often than not. &amp;nbsp;Good luck in your Talend work.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 13:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Seperate-each-JSON-object/m-p/2329144#M98359</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-07-13T13:56:36Z</dc:date>
    </item>
  </channel>
</rss>

