<?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: How to create json output to file retaining non-string data types in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301399#M73519</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&amp;nbsp;I have created a work-around by building the json as variables in a tMap and concatenating the variables&amp;nbsp;together and writing to a file with .json extension, this does the trick for me.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Would you mind posting your work around and solution on forum?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 09:20:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-04T09:20:10Z</dc:date>
    <item>
      <title>How to create json output to file retaining non-string data types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301394#M73514</link>
      <description>&lt;P&gt;I have a job where I am trying to transform a csv input file to create a json output to file.&lt;/P&gt;&lt;P&gt;The csv file contains string values as well as integer values. However it produces all values as string (between quotes) even when the data types are not string i.e. integer value 123456789 as "123456789".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My job has the following components&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileInputDelimited &amp;gt;&amp;gt;tMap&amp;gt;&amp;gt;tWriteJSONField&amp;gt;&amp;gt;tLogRow&amp;gt;&amp;gt;tFileOutputDelimited&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple way of doing this?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301394#M73514</guid>
      <dc:creator>andre4598</dc:creator>
      <dc:date>2024-11-16T09:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create json output to file retaining non-string data types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301395#M73515</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input and tFileOutputJson components is enough for this task.&lt;/P&gt;&lt;P&gt;in&amp;nbsp;&lt;SPAN&gt;tFileOutputJson component if we have int as datatype then we will get with out quotes for integer values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached screenshots.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrcZ"&gt;json_1.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lrfg"&gt;output_Json.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301395#M73515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-29T07:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create json output to file retaining non-string data types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301396#M73516</link>
      <description>&lt;P&gt;Thanks but&amp;nbsp;what I am trying to do is&amp;nbsp;take in a csv file and transform it into a json file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have an example below...&lt;/P&gt; 
&lt;P&gt;This is the sample file&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="create_json_retain_datatypes.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvFc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148502i4DF24BEAA37718EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvFc.png" alt="0683p000009LvFc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the tMap the person_id is converted from string to an integer&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="create_json_retain_datatypes2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv4q.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146588i70C91CC2571A3BF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv4q.png" alt="0683p000009Lv4q.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However when I execute my&amp;nbsp;job it writes out person_id value as a string&amp;nbsp;&amp;nbsp;(see log output below)&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="create_json_retain_datatypes3.PNG" style="width: 966px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvFm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153847iA524B62DB8A7A194/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvFm.png" alt="0683p000009LvFm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to&amp;nbsp;solve this?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 13:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301396#M73516</guid>
      <dc:creator>andre4598</dc:creator>
      <dc:date>2017-06-29T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create json output to file retaining non-string data types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301397#M73517</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LM7MAAW"&gt;@ThirupathiReddy&lt;/A&gt;&amp;nbsp;is using tFileOutputJSON rather than tWriteJSONField. &amp;nbsp;Here is the documentation for tWriteJSONField:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/ZXYb2NIVoiib7B8sYGRVJQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/ZXYb2NIVoiib7B8sYGRVJQ&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The section on Configuring a JSON Tree addresses your issue specifically.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 16:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301397#M73517</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-29T16:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create json output to file retaining non-string data types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301398#M73518</link>
      <description>&lt;P&gt;Thanks but it does not produce the json in the format that I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a work-around by building the json as variables in a tMap and concatenating the variables&amp;nbsp;together and writing to a file with .json extension, this does the trick for me.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 15:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301398#M73518</guid>
      <dc:creator>andre4598</dc:creator>
      <dc:date>2017-07-03T15:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create json output to file retaining non-string data types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301399#M73519</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&amp;nbsp;I have created a work-around by building the json as variables in a tMap and concatenating the variables&amp;nbsp;together and writing to a file with .json extension, this does the trick for me.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Would you mind posting your work around and solution on forum?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301399#M73519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-04T09:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create json output to file retaining non-string data types</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301400#M73520</link>
      <description>&lt;P&gt;I revisited&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLooAAG"&gt;@cterenzi&lt;/A&gt;&amp;nbsp;suggestion and have got my job working.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create_json_retain_datatypes4.PNG" style="width: 799px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvV6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136928iD9E11059EE9124CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvV6.png" alt="0683p000009LvV6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create_json_retain_datatypes5.PNG" style="width: 866px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvVB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132935i7E4E739C2300872E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvVB.png" alt="0683p000009LvVB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 18:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-json-output-to-file-retaining-non-string-data/m-p/2301400#M73520</guid>
      <dc:creator>andre4598</dc:creator>
      <dc:date>2017-07-12T18:06:34Z</dc:date>
    </item>
  </channel>
</rss>

