<?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: Nested XML to JSON in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287610#M61180</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ODvI9AAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128482iCDA97B738F08FB54/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ODvI9AAL.png" alt="0695b00000ODvI9AAL.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, but this gives me one User instead of the expected two.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 13:39:04 GMT</pubDate>
    <dc:creator>Nreimondo1645519314</dc:creator>
    <dc:date>2022-03-04T13:39:04Z</dc:date>
    <item>
      <title>Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287602#M61172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Talend and I have this issue. I have a XML like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;product&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;productCode&amp;gt;Code1&amp;lt;/productCode&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;productName&amp;gt;Name1&amp;lt;/productName&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;Users&amp;gt;&lt;/P&gt;&lt;P&gt;		&amp;lt;productUser&amp;gt;User1&amp;lt;/productUser&amp;gt;&lt;/P&gt;&lt;P&gt;		&amp;lt;productUser&amp;gt;User2&amp;lt;/productUser&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;/Users&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/product&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i have to convert this to a JSON. Does anyone know how to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expected JSON-array:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[{"productCode":"Code1","productName":"Name1","Users":["User1","User2"]}]&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287602#M61172</guid>
      <dc:creator>Nreimondo1645519314</dc:creator>
      <dc:date>2024-11-15T23:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287603#M61173</link>
      <description>&lt;P&gt;This method may work for you.....I haven't tested it since 2018 though. So it would be interesting to see how it works for you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/question/0D53p00007vCjPdCAK/a-simple-way-to-convert-an-xml-string-to-json&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 10:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287603#M61173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-22T10:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287604#M61174</link>
      <description>&lt;P&gt;Unfortunately your link to the jar doesn't work anymore...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 15:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287604#M61174</guid>
      <dc:creator>Nreimondo1645519314</dc:creator>
      <dc:date>2022-03-01T15:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287605#M61175</link>
      <description>&lt;P&gt;I believe this one may work. It might need a slight refactoring of the code, but I suspect it probably won't. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://jar-download.com/artifacts/org.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI if you are looking for a Jar, look at the imports and Google an import package with "jar" at the end (in this case I Googled "org.json.jsonobject jar").&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 16:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287605#M61175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-01T16:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287606#M61176</link>
      <description>&lt;P&gt;Thanks it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now I need to extract the values of the productUsers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it with a tExtractXmlField with a loop on Users, but the result is only the first value (user1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it unpossible because the tagnames are exactly the same and the number of users are different each product? any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287606#M61176</guid>
      <dc:creator>Nreimondo1645519314</dc:creator>
      <dc:date>2022-03-04T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287607#M61177</link>
      <description>&lt;P&gt;Are you using the tExtractXMLField with the JSON you have just created? If so, that won't work. You need to show more detail here. Maybe a screenshot of how you have set up your tExtractXMLField.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 12:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287607#M61177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287608#M61178</link>
      <description>&lt;P&gt;No with the same XML as posted in my original question&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287608#M61178</guid>
      <dc:creator>Nreimondo1645519314</dc:creator>
      <dc:date>2022-03-04T13:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287609#M61179</link>
      <description>&lt;P&gt;Do you have any screenshots of your configuration of the tExtractXMLField?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287609#M61179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T13:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287610#M61180</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000ODvI9AAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128482iCDA97B738F08FB54/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000ODvI9AAL.png" alt="0695b00000ODvI9AAL.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, but this gives me one User instead of the expected two.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287610#M61180</guid>
      <dc:creator>Nreimondo1645519314</dc:creator>
      <dc:date>2022-03-04T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nested XML to JSON</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287611#M61181</link>
      <description>&lt;P&gt;Your loop needs to be.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"/product/Users/productUser"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will then need to tweak your other values as they will be at the level above.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 14:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-XML-to-JSON/m-p/2287611#M61181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-04T14:25:28Z</dc:date>
    </item>
  </channel>
</rss>

