<?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 Data mapper array JSON output from delimited txt file in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Data-mapper-array-JSON-output-from-delimited-txt-file/m-p/2207186#M940</link>
    <description>&lt;P&gt;I have a delimited file with rows ans sub-rows like:&lt;/P&gt;&lt;P&gt;Parent1Name, Parent1Age, Parent1Location&amp;nbsp;// row&lt;/P&gt;&lt;P&gt;Child1AName, Child1AAge, Child1AHobby , Child1APet&amp;nbsp;// sub-row&lt;/P&gt;&lt;P&gt;Parent2Name, Parent2Age, Parent2Location&amp;nbsp;// row&lt;/P&gt;&lt;P&gt;Child1Name, Child1Age, Child1Hobby , Child1Pet&amp;nbsp;// sub-row&lt;/P&gt;&lt;P&gt;Child2Name, Child2Age, Child2Hobby , Child2Pet&amp;nbsp;// sub-row&lt;/P&gt;&lt;P&gt;And I want a Json file like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ childs:[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent1Name,&lt;/P&gt;&lt;P&gt;"ChildName": Child1AName,&lt;/P&gt;&lt;P&gt;"ChildAge": Child1AAge&lt;/P&gt;&lt;P&gt;},{&lt;/P&gt;&lt;P&gt;"ParentName": Parent2Name,&lt;/P&gt;&lt;P&gt;"ChildName" : Child1Name, &lt;/P&gt;&lt;P&gt;"ChildAge": Child1Age&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent2Name,&lt;/P&gt;&lt;P&gt;"ChildName": Child2Name,&lt;/P&gt;&lt;P&gt;"ChildAge": Child2Age&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;I'm using Data Maper and I already set the structure to get the info from the dilimited file, but when I try to creat the estructure for JSON file I'm having issues with loops getting a wrong JSON like:&lt;/P&gt;&lt;P&gt;{ childs:[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent1Name,&lt;/P&gt;&lt;P&gt;"ChildName": Child1AName,&lt;/P&gt;&lt;P&gt;"ChildAge": Child1AAge,&lt;/P&gt;&lt;P&gt;}]} &lt;/P&gt;&lt;P&gt;{ childs:[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent2Name,&lt;/P&gt;&lt;P&gt;"ChildName": Child1Name,&lt;/P&gt;&lt;P&gt;"ChildAge": Child1Age&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent2Name,&lt;/P&gt;&lt;P&gt;"ChildName" : Child2Name,&lt;/P&gt;&lt;P&gt;"ChildAge" : Child2Age&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;How should I define the output structure or the map in this case ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach my map example&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:19:23 GMT</pubDate>
    <dc:creator>MMejía</dc:creator>
    <dc:date>2024-11-15T23:19:23Z</dc:date>
    <item>
      <title>Data mapper array JSON output from delimited txt file</title>
      <link>https://community.qlik.com/t5/Data-Quality/Data-mapper-array-JSON-output-from-delimited-txt-file/m-p/2207186#M940</link>
      <description>&lt;P&gt;I have a delimited file with rows ans sub-rows like:&lt;/P&gt;&lt;P&gt;Parent1Name, Parent1Age, Parent1Location&amp;nbsp;// row&lt;/P&gt;&lt;P&gt;Child1AName, Child1AAge, Child1AHobby , Child1APet&amp;nbsp;// sub-row&lt;/P&gt;&lt;P&gt;Parent2Name, Parent2Age, Parent2Location&amp;nbsp;// row&lt;/P&gt;&lt;P&gt;Child1Name, Child1Age, Child1Hobby , Child1Pet&amp;nbsp;// sub-row&lt;/P&gt;&lt;P&gt;Child2Name, Child2Age, Child2Hobby , Child2Pet&amp;nbsp;// sub-row&lt;/P&gt;&lt;P&gt;And I want a Json file like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ childs:[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent1Name,&lt;/P&gt;&lt;P&gt;"ChildName": Child1AName,&lt;/P&gt;&lt;P&gt;"ChildAge": Child1AAge&lt;/P&gt;&lt;P&gt;},{&lt;/P&gt;&lt;P&gt;"ParentName": Parent2Name,&lt;/P&gt;&lt;P&gt;"ChildName" : Child1Name, &lt;/P&gt;&lt;P&gt;"ChildAge": Child1Age&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent2Name,&lt;/P&gt;&lt;P&gt;"ChildName": Child2Name,&lt;/P&gt;&lt;P&gt;"ChildAge": Child2Age&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;I'm using Data Maper and I already set the structure to get the info from the dilimited file, but when I try to creat the estructure for JSON file I'm having issues with loops getting a wrong JSON like:&lt;/P&gt;&lt;P&gt;{ childs:[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent1Name,&lt;/P&gt;&lt;P&gt;"ChildName": Child1AName,&lt;/P&gt;&lt;P&gt;"ChildAge": Child1AAge,&lt;/P&gt;&lt;P&gt;}]} &lt;/P&gt;&lt;P&gt;{ childs:[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent2Name,&lt;/P&gt;&lt;P&gt;"ChildName": Child1Name,&lt;/P&gt;&lt;P&gt;"ChildAge": Child1Age&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"ParentName": Parent2Name,&lt;/P&gt;&lt;P&gt;"ChildName" : Child2Name,&lt;/P&gt;&lt;P&gt;"ChildAge" : Child2Age&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;How should I define the output structure or the map in this case ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach my map example&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Data-mapper-array-JSON-output-from-delimited-txt-file/m-p/2207186#M940</guid>
      <dc:creator>MMejía</dc:creator>
      <dc:date>2024-11-15T23:19:23Z</dc:date>
    </item>
  </channel>
</rss>

