<?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 quotes numeric fields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-quotes-numeric-fields/m-p/2365640#M129225</link>
    <description>&lt;P&gt;Dear folks,&lt;BR /&gt;&lt;BR /&gt;it seems the component tWriteJSONField doesn't respect the data types of incoming columns and just writes all values in Strings.&lt;BR /&gt;My expectation is, that numeric values are not enclosed in quotes in the output of the component.&lt;BR /&gt;&lt;BR /&gt;This causes me big trouble in a use-case, where I have to transform an Excel file with several columns to a JSON String, since the numeric values are all quoted and thus the application parsing the file fails...&lt;BR /&gt;&lt;BR /&gt;I'm working with TOS 6.2.1.20160704_1411.&lt;BR /&gt;&lt;BR /&gt;Are there any known workarounds? &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;Example Job:&lt;/I&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/143702/JSON_EXAMPLE.zip.zip" target="_blank" rel="noopener"&gt;JSON_EXAMPLE.zip.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Screenshot:&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGSJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157365i775C70A074E4A2E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGSJ.png" alt="0683p000009MGSJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 17:08:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-06T17:08:03Z</dc:date>
    <item>
      <title>tWriteJSONField quotes numeric fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-quotes-numeric-fields/m-p/2365640#M129225</link>
      <description>&lt;P&gt;Dear folks,&lt;BR /&gt;&lt;BR /&gt;it seems the component tWriteJSONField doesn't respect the data types of incoming columns and just writes all values in Strings.&lt;BR /&gt;My expectation is, that numeric values are not enclosed in quotes in the output of the component.&lt;BR /&gt;&lt;BR /&gt;This causes me big trouble in a use-case, where I have to transform an Excel file with several columns to a JSON String, since the numeric values are all quoted and thus the application parsing the file fails...&lt;BR /&gt;&lt;BR /&gt;I'm working with TOS 6.2.1.20160704_1411.&lt;BR /&gt;&lt;BR /&gt;Are there any known workarounds? &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;Example Job:&lt;/I&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/143702/JSON_EXAMPLE.zip.zip" target="_blank" rel="noopener"&gt;JSON_EXAMPLE.zip.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Screenshot:&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MGSJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157365i775C70A074E4A2E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MGSJ.png" alt="0683p000009MGSJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 17:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-quotes-numeric-fields/m-p/2365640#M129225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-06T17:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField quotes numeric fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-quotes-numeric-fields/m-p/2365641#M129226</link>
      <description>According to the documentation:&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=tWriteJSONField" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tWriteJSONField&lt;/A&gt;&lt;BR /&gt;...the default type of all elements is String. &amp;nbsp;If you want an element to be numeric, you need to add an attribute named "type" and give it the static value of the type you want.</description>
      <pubDate>Thu, 06 Apr 2017 18:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-quotes-numeric-fields/m-p/2365641#M129226</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-04-06T18:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField quotes numeric fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-quotes-numeric-fields/m-p/2365642#M129227</link>
      <description>&lt;BLOCKQUOTE&gt;  cterenzi wrote:&lt;BR /&gt;According to the documentation:&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=tWriteJSONField" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tWriteJSONField&lt;/A&gt;&lt;BR /&gt;...the default type of all elements is String. &amp;nbsp;If you want an element to be numeric, you need to add an attribute named "type" and give it the static value of the type you want.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Hi cterenzi,&lt;BR /&gt;&lt;BR /&gt;thanks for your reply, this actually works fine. &lt;BR /&gt;&lt;BR /&gt;However, if you have &amp;gt; 200 columns where you have to define the type like this, this can be a tough job ^^ But I guess there is no other possibility right now *lookingforthetrainee*.</description>
      <pubDate>Fri, 07 Apr 2017 07:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-quotes-numeric-fields/m-p/2365642#M129227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-07T07:54:22Z</dc:date>
    </item>
  </channel>
</rss>

