Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Trying to read Json File

 

I am learning Talend and Struggling with the below Scenario.

 

I have an JSON input file which i am unable to read using Talend.

I tried JSON Path,Xpath, but its not working.

Can any anyone help me out regarding this issue.

 

The JSON file :

 

{"CustomersInfo":[{"Customers":"{\"CustomerName\":\"DATA-27368-Imp Org1\",\"CustomerTypeCode\":\"ORGANIZATION\",\"Address\":\"DATA-27368-1-100 Oracle Parkway\",\"SiteIdentifyingAddressIndicator\":\"Y\",\"CustomerAccountTypeName\":[],\"AccountNumber\":\"DATA-27368-1-ACCT-1\"}"},{"Customers":"{\"CustomerName\":\"Demo Customer\",\"CustomerTypeCode\":\"ORGANIZATION\",\"Address\":\"Any Street 123\",\"SiteIdentifyingAddressIndicator\":\"Y\",\"CustomerAccountTypeName\":\"External\",\"AccountNumber\":\"8002\"}"}]}

Labels (3)
1 Solution

Accepted Solutions
iamabhishek
Creator III
Creator III

This could be achieved using tFileInputJSON to read the json file and then use tExtractJSONFields to extract each node separately.

Sample job layout - 

0683p000009Lz0b.jpg

0683p000009Lywk.jpg

0683p000009Lz0g.jpg

View solution in original post

2 Replies
iamabhishek
Creator III
Creator III

This could be achieved using tFileInputJSON to read the json file and then use tExtractJSONFields to extract each node separately.

Sample job layout - 

0683p000009Lz0b.jpg

0683p000009Lywk.jpg

0683p000009Lz0g.jpg

Anonymous
Not applicable
Author

Hi Abhishek,

Thanks for your solution, it help me alot