<?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: square brackets not appearing in json array with one record in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/square-brackets-not-appearing-in-json-array-with-one-record/m-p/2232153#M22217</link>
    <description>The problem here is Talend does not handle JSON internally.They do everything with XML.
&lt;BR /&gt;Take a look in the documentation. There is a way to get an array by adding an @array attribute in the mapping configuration.
&lt;BR /&gt;The other solution could be you use components which are dedicated to JSON without the workaround XML.
&lt;BR /&gt;
&lt;A href="https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%252F1&amp;amp;pi=marketplace%252F1%252Fproducts%252F1438%252Fitems%252F2571" rel="nofollow noopener noreferrer"&gt;https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%252F1&amp;amp;pi=marketplace%252F1%252Fproducts%252F1438%252Fitems%252F2571&lt;/A&gt;</description>
    <pubDate>Thu, 08 Dec 2016 20:42:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-08T20:42:55Z</dc:date>
    <item>
      <title>square brackets not appearing in json array with one record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/square-brackets-not-appearing-in-json-array-with-one-record/m-p/2232152#M22216</link>
      <description>Hi, I am using tWriteJsonField and have an array that has only one record. The output from talend does not put square brackets around the array, please see below example:
&lt;BR /&gt;Required output:
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="brown"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;"employees"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;:}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;Talend output:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;{&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="brown"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;"employees"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="brown"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;"firstName"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="brown"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;"John"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;,&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="brown"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;"lastName"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="brown"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;"Doe"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Consolas,"&gt;}}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT face="Consolas, courier new"&gt;&lt;FONT size="3"&gt;Would request help on this.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 08 Dec 2016 19:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/square-brackets-not-appearing-in-json-array-with-one-record/m-p/2232152#M22216</guid>
      <dc:creator>ahsin</dc:creator>
      <dc:date>2016-12-08T19:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: square brackets not appearing in json array with one record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/square-brackets-not-appearing-in-json-array-with-one-record/m-p/2232153#M22217</link>
      <description>The problem here is Talend does not handle JSON internally.They do everything with XML.
&lt;BR /&gt;Take a look in the documentation. There is a way to get an array by adding an @array attribute in the mapping configuration.
&lt;BR /&gt;The other solution could be you use components which are dedicated to JSON without the workaround XML.
&lt;BR /&gt;
&lt;A href="https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%252F1&amp;amp;pi=marketplace%252F1%252Fproducts%252F1438%252Fitems%252F2571" rel="nofollow noopener noreferrer"&gt;https://exchange.talend.com/#marketplaceproductoverview:gallery=marketplace%252F1&amp;amp;pi=marketplace%252F1%252Fproducts%252F1438%252Fitems%252F2571&lt;/A&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/square-brackets-not-appearing-in-json-array-with-one-record/m-p/2232153#M22217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-08T20:42:55Z</dc:date>
    </item>
  </channel>
</rss>

