<?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: Splitting JSON array into objets (each in a row) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Splitting-JSON-array-into-objets-each-in-a-row/m-p/2535258#M148157</link>
    <description>&lt;P&gt;Hello and thanks for the reply !&lt;/P&gt;&lt;P&gt;I usually dislike using regex replace on json strings but it seemed to be the only solution in this case, I have done a variation of the setup you show here and it works for me (I remove the square brackets and replace with broken pipe as separator in case of semicolon in my data).&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
    <pubDate>Tue, 04 Nov 2025 14:46:08 GMT</pubDate>
    <dc:creator>VictorFaure</dc:creator>
    <dc:date>2025-11-04T14:46:08Z</dc:date>
    <item>
      <title>Splitting JSON array into objets (each in a row)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Splitting-JSON-array-into-objets-each-in-a-row/m-p/2533640#M148104</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm currently working on requesting a paginated API which returns data into an array containing several objects like so:&lt;BR /&gt;"array_elem": [{"prop1": "val1", "prop2": "val2"}, {"prop1": "val3", "prop2": "val4"}]&lt;BR /&gt;What I want to do finally is to merge the arrays I receive from the different pages into one big array.&lt;BR /&gt;What I'm struggling with is splitting the above array into 2 rows containing json objects like this:&lt;BR /&gt;row1:&amp;nbsp;{"prop1": "val1", "prop2": "val2"}&lt;/P&gt;&lt;P&gt;row2:&amp;nbsp;{"prop1": "val3", "prop2": "val4"}&lt;/P&gt;&lt;P&gt;instead I get&lt;BR /&gt;["val1", "val2"]&lt;/P&gt;&lt;P&gt;["val3, "val4"]&lt;/P&gt;&lt;P&gt;And when merging into the big array it becomes 2D array and we lose the properties' names.&lt;BR /&gt;&lt;BR /&gt;Here is my tExtractJSONFields config:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VictorFaure_0-1760625871772.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184274iA92273E5B791B2EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VictorFaure_0-1760625871772.png" alt="VictorFaure_0-1760625871772.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 14:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Splitting-JSON-array-into-objets-each-in-a-row/m-p/2533640#M148104</guid>
      <dc:creator>VictorFaure</dc:creator>
      <dc:date>2025-10-16T14:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting JSON array into objets (each in a row)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Splitting-JSON-array-into-objets-each-in-a-row/m-p/2534007#M148119</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/310039"&gt;@VictorFaure&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hello! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can read the data as a string, then use Java code to intercept the substring, and finally, use the tNormalize component to split the string into multiple rows.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-10-22_11-03-15.png" style="width: 875px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184362iEDAC4795D8DA3B59/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-10-22_11-03-15.png" alt="2025-10-22_11-03-15.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-10-22_11-02-55.png" style="width: 927px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184361i14F258A39D647CC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-10-22_11-02-55.png" alt="2025-10-22_11-02-55.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-10-22_11-02-33.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184363i0CCFB7412D93255D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-10-22_11-02-33.png" alt="2025-10-22_11-02-33.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-10-22_11-01-46.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184364iAE1D89D7A793A381/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-10-22_11-01-46.png" alt="2025-10-22_11-01-46.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Java code on tJavaRow_1:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;//Code generated according to input schema and output schema
output_row.body = (input_row.body.substring(input_row.body.indexOf(":")+1)).replaceAll("\\[", "").replaceAll("\\]", "");
output_row.body=output_row.body.replaceAll("\\}, \\{","\\}; \\{");

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps you!&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 03:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Splitting-JSON-array-into-objets-each-in-a-row/m-p/2534007#M148119</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2025-10-22T03:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting JSON array into objets (each in a row)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Splitting-JSON-array-into-objets-each-in-a-row/m-p/2535258#M148157</link>
      <description>&lt;P&gt;Hello and thanks for the reply !&lt;/P&gt;&lt;P&gt;I usually dislike using regex replace on json strings but it seemed to be the only solution in this case, I have done a variation of the setup you show here and it works for me (I remove the square brackets and replace with broken pipe as separator in case of semicolon in my data).&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 14:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Splitting-JSON-array-into-objets-each-in-a-row/m-p/2535258#M148157</guid>
      <dc:creator>VictorFaure</dc:creator>
      <dc:date>2025-11-04T14:46:08Z</dc:date>
    </item>
  </channel>
</rss>

