<?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 list of values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262292#M42799</link>
    <description>Hi everyone! Need your help: 
&lt;BR /&gt;I have json file : 
&lt;BR /&gt;{ 
&lt;BR /&gt; "Name": "Items List", 
&lt;BR /&gt; "Items": 
&lt;BR /&gt;} 
&lt;BR /&gt;I need to convert it to something like this: 
&lt;BR /&gt;|=---------+-----------------------=| 
&lt;BR /&gt;|Name |Items | 
&lt;BR /&gt;|=---------+-----------------------=| 
&lt;BR /&gt;|Items List| | 
&lt;BR /&gt;'----------+--------------------------' 
&lt;BR /&gt;|Items List| | 
&lt;BR /&gt;'----------+--------------------------' 
&lt;BR /&gt;|Items List| | 
&lt;BR /&gt;'----------+--------------------------' 
&lt;BR /&gt;Unfortunately i have some strange results, i run my job in TOS Version: 5.3.1 on windows 
&lt;BR /&gt; and i get 
&lt;BR /&gt;!!!!!! Items list:] 
&lt;BR /&gt;!!!!!! Items list size: 1 
&lt;BR /&gt;.----------+---------------------------. 
&lt;BR /&gt;| tLogRow_1 | 
&lt;BR /&gt;|=---------+--------------------------=| 
&lt;BR /&gt;|Name |Items | 
&lt;BR /&gt;|=---------+--------------------------=| 
&lt;BR /&gt;|Items List|]| 
&lt;BR /&gt;'----------+---------------------------' 
&lt;BR /&gt;1. I use tFileInputJSON like my input (scheme: Name - string, Items - List) 
&lt;BR /&gt;2. I use tJavaRow 
&lt;BR /&gt;3. tLogRow 
&lt;BR /&gt;All it sounds very basic but not works like i expected &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; 
&lt;BR /&gt;Any ideas? 
&lt;BR /&gt;Please, little help will be appreciated, thanks 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsQ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131553i4C68D7A0B400DFAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsQ.jpg" alt="0683p000009MBsQ.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBqV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138800iA39BAB1F9AA971F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBqV.jpg" alt="0683p000009MBqV.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Sat, 16 Nov 2024 11:49:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T11:49:23Z</dc:date>
    <item>
      <title>JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262292#M42799</link>
      <description>Hi everyone! Need your help: 
&lt;BR /&gt;I have json file : 
&lt;BR /&gt;{ 
&lt;BR /&gt; "Name": "Items List", 
&lt;BR /&gt; "Items": 
&lt;BR /&gt;} 
&lt;BR /&gt;I need to convert it to something like this: 
&lt;BR /&gt;|=---------+-----------------------=| 
&lt;BR /&gt;|Name |Items | 
&lt;BR /&gt;|=---------+-----------------------=| 
&lt;BR /&gt;|Items List| | 
&lt;BR /&gt;'----------+--------------------------' 
&lt;BR /&gt;|Items List| | 
&lt;BR /&gt;'----------+--------------------------' 
&lt;BR /&gt;|Items List| | 
&lt;BR /&gt;'----------+--------------------------' 
&lt;BR /&gt;Unfortunately i have some strange results, i run my job in TOS Version: 5.3.1 on windows 
&lt;BR /&gt; and i get 
&lt;BR /&gt;!!!!!! Items list:] 
&lt;BR /&gt;!!!!!! Items list size: 1 
&lt;BR /&gt;.----------+---------------------------. 
&lt;BR /&gt;| tLogRow_1 | 
&lt;BR /&gt;|=---------+--------------------------=| 
&lt;BR /&gt;|Name |Items | 
&lt;BR /&gt;|=---------+--------------------------=| 
&lt;BR /&gt;|Items List|]| 
&lt;BR /&gt;'----------+---------------------------' 
&lt;BR /&gt;1. I use tFileInputJSON like my input (scheme: Name - string, Items - List) 
&lt;BR /&gt;2. I use tJavaRow 
&lt;BR /&gt;3. tLogRow 
&lt;BR /&gt;All it sounds very basic but not works like i expected &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; 
&lt;BR /&gt;Any ideas? 
&lt;BR /&gt;Please, little help will be appreciated, thanks 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsQ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131553i4C68D7A0B400DFAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsQ.jpg" alt="0683p000009MBsQ.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBqV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138800iA39BAB1F9AA971F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBqV.jpg" alt="0683p000009MBqV.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262292#M42799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262293#M42800</link>
      <description>Hi, &lt;BR /&gt;Please take a look at component reference &lt;A href="https://help.talend.com/search/all?query=tExtractJSONFields&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tExtractJSONFields&lt;/A&gt;.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 27 Nov 2013 02:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262293#M42800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-27T02:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262294#M42801</link>
      <description>Hi Sabrina, thanks for answering me, but still it's not so clear for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; 
&lt;BR /&gt;I got through all docs about tExtractJSONFields and so?? exampels of it ... I inserted tExtractJSONFields in my job but i have no idea what about parameter "XPath query" of this component, I have a list of Strings and don't have any label to every item, so what i put in "XPath query"?? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBiM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152405iED741B4357BFDB67/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBiM.png" alt="0683p000009MBiM.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 27 Nov 2013 08:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262294#M42801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-27T08:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262295#M42802</link>
      <description>Hi, &lt;BR /&gt;For XPath query, here is a reference &lt;A href="http://www.w3schools.com/xpath/default.asp" rel="nofollow noopener noreferrer"&gt;http://www.w3schools.com/xpath/default.asp&lt;/A&gt;.&lt;BR /&gt;You can use File JSON metadata to &lt;A href="https://help.talend.com/search/all?query=Setting+up+a+JSON+schema+for+an+input+file&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;Set up a JSON schema for an input file&lt;/A&gt;, which will be helpful for you to understand XPath query.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 27 Nov 2013 09:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262295#M42802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-27T09:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262296#M42803</link>
      <description>I use TOS for Big Data, i don't have the "Metadata" in my Repository :-(
&lt;BR /&gt;Xpath that i looking for is to member (string) of element collections and NOT object collection that every member has its label. Its Possible that Talend not supports list of strings (or integers) and only list of objects in json field??
&lt;BR /&gt;Sabrina, please look at my simple example above, hope you have an answer 
&lt;BR /&gt;thanks</description>
      <pubDate>Wed, 27 Nov 2013 09:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262296#M42803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-27T09:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262297#M42804</link>
      <description>Any help. please!!</description>
      <pubDate>Sun, 01 Dec 2013 08:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262297#M42804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-01T08:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262298#M42805</link>
      <description>Hi again, 
&lt;BR /&gt;I still can not overcome the problem, is it possible only in Subscription License?</description>
      <pubDate>Thu, 19 Dec 2013 07:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262298#M42805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T07:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262299#M42806</link>
      <description>Hi Oksana 
&lt;BR /&gt;If the size of the item list is always fixed, for example, 3 items in this example, you can set the xpath query as "../Items" to map the first item. Here I show you an demo job how to read the json file and get the expected result. 
&lt;BR /&gt;in.json 
&lt;BR /&gt;{ 
&lt;BR /&gt; "Name": "Items List", 
&lt;BR /&gt; "Items": 
&lt;BR /&gt;} 
&lt;BR /&gt;code on tJavaRow: 
&lt;BR /&gt; 
&lt;PRE&gt;output_row.item_list = input_row.item_list;&lt;BR /&gt;//concatenate column0, column1, column1 to one column, eg: item1;item2;item3&lt;BR /&gt;output_row.conn = input_row.column0+";"+input_row.column1+";"+input_row.column2;&lt;/PRE&gt; 
&lt;BR /&gt;console: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job Demo at 16:45 19/12/2013.&lt;BR /&gt; connecting to socket on port 4061&lt;BR /&gt; connected&lt;BR /&gt;.----------+-------+-------+-------.&lt;BR /&gt;|            tLogRow_1             |&lt;BR /&gt;|=---------+-------+-------+------=|&lt;BR /&gt;|item_list |column0|column1|column2|&lt;BR /&gt;|=---------+-------+-------+------=|&lt;BR /&gt;|Items List|Item1  |Item2  |Item3  |&lt;BR /&gt;'----------+-------+-------+-------'&lt;BR /&gt;.----------+-----.&lt;BR /&gt;|   tLogRow_2    |&lt;BR /&gt;|=---------+----=|&lt;BR /&gt;|item_list |conn |&lt;BR /&gt;|=---------+----=|&lt;BR /&gt;|Items List|Item1|&lt;BR /&gt;|Items List|Item2|&lt;BR /&gt;|Items List|Item3|&lt;BR /&gt;'----------+-----'&lt;BR /&gt; disconnected&lt;BR /&gt;Job Demo ended at 16:45 19/12/2013. &lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143435i0285A0F4DE8DDA50/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsV.png" alt="0683p000009MBsV.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBlz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142419iE6A14BA165C3E5A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBlz.png" alt="0683p000009MBlz.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBKt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148458i561A9DF8CC1D6FCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBKt.png" alt="0683p000009MBKt.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 19 Dec 2013 09:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262299#M42806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T09:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262300#M42807</link>
      <description>So thank you !!! 
&lt;BR /&gt;But still i have i problem, I don't know how many members is going to be in the list!! Is there is some other work around?
&lt;BR /&gt;Thanks a lot</description>
      <pubDate>Thu, 19 Dec 2013 10:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262300#M42807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T10:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262301#M42808</link>
      <description>Hi 
&lt;BR /&gt;This approach don't suitable for the case the number of items changes. Read the json file without by XPath, and then extract the fields from the string list with tExtractRegexFields, see my screenshots. 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBpD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156982i60352C908AE2E742/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBpD.png" alt="0683p000009MBpD.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144764i277D3C3D2960E55F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsa.png" alt="0683p000009MBsa.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBsf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130947i309414D88222E4C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBsf.png" alt="0683p000009MBsf.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 23 Dec 2013 03:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262301#M42808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-23T03:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: JSON list of values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262302#M42809</link>
      <description>Thank you very much, i'll try it.</description>
      <pubDate>Mon, 23 Dec 2013 07:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-list-of-values/m-p/2262302#M42809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-23T07:20:04Z</dc:date>
    </item>
  </channel>
</rss>

