<?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 tWriteJSONField and element with empty string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305931#M77510</link>
    <description>&lt;P&gt;I would like to create json object using&amp;nbsp;tWriteJSONField:&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;"title":""&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;but instead I got&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;"title":[]&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Tried to use empty string from tMap component as input, spent some time trying to enter a hardcoded empty string but no success :-|.&lt;BR /&gt;&lt;BR /&gt;Is it a good practice to use this component for json output? Maybe there is a better way to create a json file with mapping using other components?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2016 13:55:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-23T13:55:42Z</dc:date>
    <item>
      <title>tWriteJSONField and element with empty string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305931#M77510</link>
      <description>&lt;P&gt;I would like to create json object using&amp;nbsp;tWriteJSONField:&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;"title":""&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;but instead I got&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;"title":[]&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Tried to use empty string from tMap component as input, spent some time trying to enter a hardcoded empty string but no success :-|.&lt;BR /&gt;&lt;BR /&gt;Is it a good practice to use this component for json output? Maybe there is a better way to create a json file with mapping using other components?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 13:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305931#M77510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField and element with empty string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305932#M77511</link>
      <description>Hi,
&lt;BR /&gt;Could you please elaborate your case with an example with input and expected output values? In this way, we can design a demo job for you.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 26 Dec 2016 06:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305932#M77511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-26T06:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField and element with empty string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305933#M77512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you got the solution for this question?&lt;/P&gt;&lt;P&gt;I amfacing same issue .Can you please help me with it?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 12:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305933#M77512</guid>
      <dc:creator>Pooja_kataria</dc:creator>
      <dc:date>2020-06-30T12:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField and element with empty string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305934#M77513</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you got the solution for this question?&lt;/P&gt;&lt;P&gt;I amfacing same issue .Can you please help me with it?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 12:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305934#M77513</guid>
      <dc:creator>Pooja_kataria</dc:creator>
      <dc:date>2020-06-30T12:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField and element with empty string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305935#M77514</link>
      <description>&lt;A href="https://help.talend.com/reader/LNO9Tqm8svZQklRyXL8OYw/HDXOdWVienee_BuL7LstpQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/LNO9Tqm8svZQklRyXL8OYw/HDXOdWVienee_BuL7LstpQ&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Pls check the note: 
&lt;BR /&gt; 
&lt;BR /&gt;Note: For any field with the null value, this component writes a pair of square brackets ([]). If needed, you can remove or replace them using a regular expression in a tJavaRow component next to the tWriteJSONField component. For exmaple: 
&lt;BR /&gt;output_row.rootNode = input_row.rootNode.replaceAll("\\[\\]", ""); 
&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2020 14:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305935#M77514</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2020-06-30T14:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField and element with empty string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305936#M77515</link>
      <description>&lt;A href="https://help.talend.com/reader/LNO9Tqm8svZQklRyXL8OYw/HDXOdWVienee_BuL7LstpQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/LNO9Tqm8svZQklRyXL8OYw/HDXOdWVienee_BuL7LstpQ&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Pls check the note: 
&lt;BR /&gt; 
&lt;BR /&gt;Note: For any field with the null value, this component writes a pair of square brackets ([]). If needed, you can remove or replace them using a regular expression in a tJavaRow component next to the tWriteJSONField component. For exmaple: 
&lt;BR /&gt;output_row.rootNode = input_row.rootNode.replaceAll("\\[\\]", ""); 
&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2020 14:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-and-element-with-empty-string/m-p/2305936#M77515</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2020-06-30T14:32:19Z</dc:date>
    </item>
  </channel>
</rss>

