Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Convert Json to CSV with space

Hi,

 

I have a json payload with 50 fields. I need to convert the same and upload to an endpoint.

The twist is the field names have space between them. e.g First Name.

I am using tExtracJson and tFileOutputdelimited. This component doesnt accept space.

Can someone suggest how to resolve this issue without having to replace the space with no space or underscore.

 

Thanks

Labels (4)
12 Replies
manodwhb
Champion II
Champion II

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.0683p000009LsSQ.png

Anonymous
Not applicable
Author

Hi,

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.

So I need a csv file with space in field name

manodwhb
Champion II
Champion II

if you are getting from database,first create a metedata for the Json format and call the metadata in tExtractJsonfield of schema.

manodwhb
Champion II
Champion II

In Talend will not allow you with space,!,@,#,$,%,^,&,*,(,),- ,+ and = column names.

Anonymous
Not applicable
Author

Hmm..any other way? 

 

This is my scenario:

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.

Can I create a metadat with space

manodwhb
Champion II
Champion II

you need to change the space to _as i mention in sceenshot.

Anonymous
Not applicable
Author

But when I map the field, it errors our right?

manodwhb
Champion II
Champion II

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.

Anonymous
Not applicable
Author

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?

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