<?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: Convert Json to CSV with space in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287230#M60852</link>
    <description>&lt;P&gt;if you are getting from database,first create a metedata for the Json format and call the metadata in tExtractJsonfield of schema.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 07:03:24 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2018-02-23T07:03:24Z</dc:date>
    <item>
      <title>Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287227#M60849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a json payload with 50 fields. I need to convert the same and upload to an endpoint.&lt;/P&gt;&lt;P&gt;The twist is the field names have space between them. e.g First Name.&lt;/P&gt;&lt;P&gt;I am using tExtracJson and tFileOutputdelimited. This component doesnt accept space.&lt;/P&gt;&lt;P&gt;Can someone suggest how to resolve this issue without having to replace the space with no space or underscore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287227#M60849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287228#M60850</link>
      <description>&lt;P&gt;&lt;SPAN&gt;do you have Json file,which you wan tot convert right? first try to create for metedata for Json file,when you try to create metadata it will replace space with '_',please below screenshot for your information.&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 716px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsSQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146951i8088AC9DB6D4A192/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsSQ.png" alt="0683p000009LsSQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 06:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287228#M60850</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-02-23T06:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287229#M60851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dont want to replace space with underscore. I want the Field name as is with space. Json has it with space and my target also has it with space.&lt;/P&gt;&lt;P&gt;So I need a csv file with space in field name&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287229#M60851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T07:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287230#M60852</link>
      <description>&lt;P&gt;if you are getting from database,first create a metedata for the Json format and call the metadata in tExtractJsonfield of schema.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287230#M60852</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-02-23T07:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287231#M60853</link>
      <description>&lt;P&gt;In Talend will not allow you with space,!,@,#,$,%,^,&amp;amp;,*,(,),- ,+ and = column names.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287231#M60853</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-02-23T07:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287232#M60854</link>
      <description>&lt;P&gt;Hmm..any other way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my scenario:&lt;/P&gt;&lt;P&gt;I get a json file with data. I need to convert to csv. I need to map the fields to a survey. The survey fields has space. so i must have space between fields in csv too.&lt;/P&gt;&lt;P&gt;Can I create a metadat with space&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287232#M60854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T07:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287233#M60855</link>
      <description>&lt;P&gt;you need to change the space to _as i mention in sceenshot.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287233#M60855</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-02-23T07:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287234#M60856</link>
      <description>&lt;P&gt;But when I map the field, it errors our right?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287234#M60856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T07:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287235#M60857</link>
      <description>&lt;P&gt;correct,so thats why first you need to create a metadata ,while creating metadata it will convert space with '_' so you can use the same metadata.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287235#M60857</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-02-23T07:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287236#M60858</link>
      <description>&lt;P&gt;This is exactly what I am telling. The space is getting converted to _ . But the field that I must map to does not have _ . So how do I do it?&lt;/P&gt; 
&lt;P&gt;I am using tHttpRequest to send the data. The output schema must have field name with space. But I am not able to give it. How do I proceed&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287236#M60858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T07:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287237#M60859</link>
      <description>&lt;P&gt;You cannot put spaces in headers because they are essentially variables. This can be pain sometimes. However, there is an easy solution (hack) for this. You have a process where you are moving data from JSON to CSV. I assume that works. What you need to do is change the config of the file output component to NOT include the header and to "Append". Then before this process(subjob) takes place, create another subjob with the sole purpose of writing the header. Use a tFixedFlowInput with one row and hard code your header names. You can have whatever you want. Connect this to a file output component (not the one you are already using) and make sure "Append" is unticked and"Include Header" is unticked.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What this does is write a single row at the beginning of a new file....this is your header row. You then append to that file with the flow of data you already have.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 582px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsBB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128939i294E52A9E07161EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsBB.png" alt="0683p000009LsBB.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;</description>
      <pubDate>Fri, 23 Feb 2018 11:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287237#M60859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T11:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287238#M60860</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried the approach. It populates the header. But I need the csv file to be generated like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Field1,Field2,Field3,Field4, etc&lt;/P&gt;
&lt;P&gt;Currently I am getting it as&lt;/P&gt;
&lt;P&gt;Field1&lt;/P&gt;
&lt;P&gt;Field2&lt;/P&gt;
&lt;P&gt;Field3&lt;/P&gt;
&lt;P&gt;Field4&lt;/P&gt;
&lt;P&gt;Screen shot of my setting is attached. I tried various approaches and apart from hardcoding, nothing seems to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsMq"&gt;pic.zip&lt;/A&gt;</description>
      <pubDate>Thu, 01 Mar 2018 05:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287238#M60860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T05:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Json to CSV with space</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287239#M60861</link>
      <description>&lt;P&gt;Got the solution. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 06:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Json-to-CSV-with-space/m-p/2287239#M60861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T06:43:57Z</dc:date>
    </item>
  </channel>
</rss>

