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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Excel Sheet to JSON data transfer

Hi,
I am new to Talend and ETL solutions.
I have excel sheets as follows.
structure of the single excel sheet as follows.
__________________________________
     |      A                  |       B                |
-----------------------------------------------
A1 |      User name      | user A              |
----------------------------------------------
A2 |Age                     | 27                    |
----------------------------------------------
A3 |Gender                | M                     |
----------------------------------------------
I am required to create a JSON as follows from a single excel file.
{
       UserName: "user a",
       age: 27
       gender: "m"
}
and repeat it to same process to all the other excel sheets and create json form each excel.
I was unable to find a method to do so.
Please suggest me an solution.
Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hi
First, you need to convert rows to columns, eg:
A;B
User name; userA
Age;27
Gender;M
becomes
user name;Age;Gender
userA;27;M
Refer to this article to learn how to finish this transformation.
Then, write a json string with tWriteJsonFields.
Best regards
Shong