<?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 JSON parsing multiple values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-values/m-p/2350678#M117494</link>
    <description>&lt;P&gt;&lt;/P&gt;&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;/P&gt;&lt;P&gt;	"data": {&lt;/P&gt;&lt;P&gt;	 		"Days": [0, 1, 2, 3, 4, 5, 6],&lt;/P&gt;&lt;P&gt;			"amount": [0, 0, 0, 234, 0, 0, 0]&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 09:10:19 GMT</pubDate>
    <dc:creator>NMANJESHWAR</dc:creator>
    <dc:date>2023-06-23T09:10:19Z</dc:date>
    <item>
      <title>JSON parsing multiple values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-values/m-p/2350678#M117494</link>
      <description>&lt;P&gt;&lt;/P&gt;&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;/P&gt;&lt;P&gt;	"data": {&lt;/P&gt;&lt;P&gt;	 		"Days": [0, 1, 2, 3, 4, 5, 6],&lt;/P&gt;&lt;P&gt;			"amount": [0, 0, 0, 234, 0, 0, 0]&lt;/P&gt;&lt;P&gt;			}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 09:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-values/m-p/2350678#M117494</guid>
      <dc:creator>NMANJESHWAR</dc:creator>
      <dc:date>2023-06-23T09:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: JSON parsing multiple values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-values/m-p/2350679#M117495</link>
      <description>&lt;P&gt;Hi @Niranjan MANJESHWAR​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create an array element you'll need to "add an attribute named class and set its static value to array, and then add a sub-element named element set as a loop" (&lt;A href="https://help.talend.com/r/en-US/8.0/processing/configuring-a-json-tree" alt="https://help.talend.com/r/en-US/8.0/processing/configuring-a-json-tree" target="_blank"&gt;reference&lt;/A&gt;), then you map the source column to that element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, tWriteJSONField allows setting only one loop per tree. If you have access to Talend Data Mapper, you could use it to overcome this limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if you're using TOS I'd suggest that, depending on your data volume, you create multiple arrays and store them in memory and then concatenate them to construct the full json structure.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 12:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-parsing-multiple-values/m-p/2350679#M117495</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-06-23T12:23:32Z</dc:date>
    </item>
  </channel>
</rss>

