<?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: Convert single row to object in array in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-Convert-single-row-to-object-in-array/m-p/2509464#M148926</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working with a REST API that expect a JSON array as body. I've looked this&amp;nbsp;&lt;A href="https://help.qlik.com/talend/en-US/components/8.0/processing/twritejsonfield-tmap-trowgenerator-trowgenerator-configuring-and-running-job-create" target="_blank"&gt;https://help.qlik.com/talend/en-US/components/8.0/processing/twritejsonfield-tmap-trowgenerator-trowgenerator-configuring-and-running-job-create&lt;/A&gt;&amp;nbsp;from Qlik which explains how to transform several rows into an array of objects. Problem is it doesn't work with a single object, I expect [{"a": "b", "c": "d"}] but get {"loop": {"a": "b", "c": "d"}}&lt;/P&gt;&lt;P&gt;My tWriteJSON component is configured as the Qlik article suggest and I receive one row with loop = 'x'&lt;/P&gt;&lt;P&gt;What am I doing wrong ? It the article not working with one row ? How to have a solution which works with multiple and single row ?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
    <dc:creator>VictorFaure</dc:creator>
    <dc:date>2026-01-02T14:45:42Z</dc:date>
    <item>
      <title>JSON: Convert single row to object in array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Convert-single-row-to-object-in-array/m-p/2509464#M148926</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working with a REST API that expect a JSON array as body. I've looked this&amp;nbsp;&lt;A href="https://help.qlik.com/talend/en-US/components/8.0/processing/twritejsonfield-tmap-trowgenerator-trowgenerator-configuring-and-running-job-create" target="_blank"&gt;https://help.qlik.com/talend/en-US/components/8.0/processing/twritejsonfield-tmap-trowgenerator-trowgenerator-configuring-and-running-job-create&lt;/A&gt;&amp;nbsp;from Qlik which explains how to transform several rows into an array of objects. Problem is it doesn't work with a single object, I expect [{"a": "b", "c": "d"}] but get {"loop": {"a": "b", "c": "d"}}&lt;/P&gt;&lt;P&gt;My tWriteJSON component is configured as the Qlik article suggest and I receive one row with loop = 'x'&lt;/P&gt;&lt;P&gt;What am I doing wrong ? It the article not working with one row ? How to have a solution which works with multiple and single row ?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Convert-single-row-to-object-in-array/m-p/2509464#M148926</guid>
      <dc:creator>VictorFaure</dc:creator>
      <dc:date>2026-01-02T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: JSON: Convert single row to object in array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-Convert-single-row-to-object-in-array/m-p/2509495#M148927</link>
      <description>&lt;P&gt;Found an answer to my quesiton, Qlik article was indeed incomplete, adding attributes class = 'array' to the root tag does the trick.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VictorFaure_0-1741783522381.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178444i3467E775693AA939/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VictorFaure_0-1741783522381.png" alt="VictorFaure_0-1741783522381.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 12:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-Convert-single-row-to-object-in-array/m-p/2509495#M148927</guid>
      <dc:creator>VictorFaure</dc:creator>
      <dc:date>2025-03-12T12:46:44Z</dc:date>
    </item>
  </channel>
</rss>

