<?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 How to send empty string through tWriteJSONField and not a NULL in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-empty-string-through-tWriteJSONField-and-not-a-NULL/m-p/2485148#M141344</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hi I am new to Talend.&lt;/P&gt;
&lt;P&gt;My data elements could have a NULL value. I need to be able to send an empty string ("") in place of that NULL.&lt;/P&gt;
&lt;P&gt;Currently the JSON out of the tWriteJSONField is:&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 0px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'courier'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;{&lt;BR /&gt;"LastName": "Young",&lt;BR /&gt;"FirstName": "Nolan",&lt;BR /&gt;"MiddleInitial": [],&lt;BR /&gt;"Title": "Tester",&lt;BR /&gt;"Administrator": "1",&lt;BR /&gt;"Username": "Noyoung"&lt;BR /&gt;}&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;I need to have "" instead of the array []&lt;/P&gt;
&lt;P style="margin: 0;"&gt;"MiddleInitial": "",&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Thank you.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;About our Talend Install:&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Talend Studio 8&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;Build id: 20240524_0800-patch&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Oct 2024 16:05:33 GMT</pubDate>
    <dc:creator>himanshup</dc:creator>
    <dc:date>2024-10-03T16:05:33Z</dc:date>
    <item>
      <title>How to send empty string through tWriteJSONField and not a NULL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-empty-string-through-tWriteJSONField-and-not-a-NULL/m-p/2485148#M141344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hi I am new to Talend.&lt;/P&gt;
&lt;P&gt;My data elements could have a NULL value. I need to be able to send an empty string ("") in place of that NULL.&lt;/P&gt;
&lt;P&gt;Currently the JSON out of the tWriteJSONField is:&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 0px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'courier'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;{&lt;BR /&gt;"LastName": "Young",&lt;BR /&gt;"FirstName": "Nolan",&lt;BR /&gt;"MiddleInitial": [],&lt;BR /&gt;"Title": "Tester",&lt;BR /&gt;"Administrator": "1",&lt;BR /&gt;"Username": "Noyoung"&lt;BR /&gt;}&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;I need to have "" instead of the array []&lt;/P&gt;
&lt;P style="margin: 0;"&gt;"MiddleInitial": "",&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Thank you.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;About our Talend Install:&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Talend Studio 8&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;Build id: 20240524_0800-patch&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Oct 2024 16:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-empty-string-through-tWriteJSONField-and-not-a-NULL/m-p/2485148#M141344</guid>
      <dc:creator>himanshup</dc:creator>
      <dc:date>2024-10-03T16:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to send empty string through tWriteJSONField and not a NULL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-empty-string-through-tWriteJSONField-and-not-a-NULL/m-p/2485389#M141349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can use this in a tJavarow to replace the [] with ""&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dave_Simo_0-1728051852527.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172532iD401A4AB34ADB472/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dave_Simo_0-1728051852527.png" alt="Dave_Simo_0-1728051852527.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 14:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-empty-string-through-tWriteJSONField-and-not-a-NULL/m-p/2485389#M141349</guid>
      <dc:creator>Dave_Simo</dc:creator>
      <dc:date>2024-10-04T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to send empty string through tWriteJSONField and not a NULL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-empty-string-through-tWriteJSONField-and-not-a-NULL/m-p/2485693#M141355</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;In the Advanced setting for tWriteJSONField, I checked the box - Pass null values and empty strings explicitly, and that resolved the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 18:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-empty-string-through-tWriteJSONField-and-not-a-NULL/m-p/2485693#M141355</guid>
      <dc:creator>himanshup</dc:creator>
      <dc:date>2024-10-07T18:06:45Z</dc:date>
    </item>
  </channel>
</rss>

