Excel Sheet to JSON data transfer

One Star

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.
Community Manager

Re: Excel Sheet to JSON data transfer

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
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download