<?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: Empty string value is output as empty array in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289625#M62994</link>
    <description>&lt;P&gt;you could focus on specific field like input_row.string.replaceAll("\"site_id\":\\[\\]","\"site_id\":\"\"");&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 09:21:49 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2022-03-29T09:21:49Z</dc:date>
    <item>
      <title>Empty string value is output as empty array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289620#M62989</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am using tWriteJSONField to output JSON. Problem I am facing is whenever a string comes with null value, it is stored as [] ie &lt;SPAN&gt;"emtpy array"&lt;/SPAN&gt; , although it should be "" i.e.&amp;nbsp;&lt;SPAN&gt;"empty string"&lt;/SPAN&gt;, ARE there any fixes Talend has provided for this issue? I can do a simple find and replace, but wondering if there is any configuration or available fix for this. I am using Talend Studio 6.3.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289620#M62989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Empty string value is output as empty array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289621#M62990</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Here is a related jira issue:&lt;A title="https://jira.talendforge.org/browse/TDI-31237" href="https://jira.talendforge.org/browse/TDI-31237" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-31237&lt;/A&gt;.&lt;/P&gt; 
&lt;P&gt;Could you please check it to see if it is what you are looking for?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 11:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289621#M62990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-27T11:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Empty string value is output as empty array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289622#M62991</link>
      <description>&lt;P&gt;Hi @Xiaodi Shi​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Came across this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I log it "site_id" shows empty.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PMqNkAAL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129354iC537A9F3BC73135C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PMqNkAAL.png" alt="0695b00000PMqNkAAL.png" /&gt;&lt;/span&gt;When I use twritejsonfield and out to a json file it changes to empty [].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PMqOYAA1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150557i504CBEB6D45622F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PMqOYAA1.png" alt="0695b00000PMqOYAA1.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any solution for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 02:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289622#M62991</guid>
      <dc:creator>heshkaru</dc:creator>
      <dc:date>2022-03-29T02:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Empty string value is output as empty array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289623#M62992</link>
      <description>&lt;P&gt;HI @Heshan Karunaratneyou could try to play with advanced option of the component like pass empty string or null value explicitly else you could try to add a tJavaRow after the tWriteJsonfield then in the tjavaRow :&lt;/P&gt;&lt;P&gt;output_row.string = input_row.string.replaceAll("\\[\\]","\"\"");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it will replace [] by ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here i assume your json schema field name is string&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 08:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289623#M62992</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-03-29T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Empty string value is output as empty array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289624#M62993</link>
      <description>&lt;P&gt;Hi, For 50% this option is ok.&lt;/P&gt;&lt;P&gt;output_row.string = input_row.string.replaceAll("\\[\\]","\"\"");&lt;/P&gt;&lt;P&gt;But in my json object there are specific arrays and objects as well. For an empty array [] is fine.&lt;/P&gt;&lt;P&gt;Im specifically replacing them first and doing the rest to the others.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 09:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289624#M62993</guid>
      <dc:creator>heshkaru</dc:creator>
      <dc:date>2022-03-29T09:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Empty string value is output as empty array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289625#M62994</link>
      <description>&lt;P&gt;you could focus on specific field like input_row.string.replaceAll("\"site_id\":\\[\\]","\"site_id\":\"\"");&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 09:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-string-value-is-output-as-empty-array/m-p/2289625#M62994</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-03-29T09:21:49Z</dc:date>
    </item>
  </channel>
</rss>

