Extracting fields from a JSON output

Four Stars

Extracting fields from a JSON output

Hi,

 

I am building a talend standard job to make a call to Rest api and extract the results. The response from the API is a JSON. I am unable to extract the fields using textractJson. Can someone please help.

 

 

Json format is as a follows:

 

{
"validatePostalCodeResponseData" : {
"PostalIdResponse" : [ {
"City" : "WASHINGTON",
"PostalCode" : "20011",
"Province" : "District Of Colombia",
"ProvinceCode" : "DC"
} ],
"ServiceStatus" : {
"ResponseStatus" : 0,
"ErrorCode" : null,
"ErrorDescription" : null
}
}
}|

 

 

The textractjson component settings are attached as image.

 textractjson.png

 

Thank you 

Raj.

Eight Stars

Re: Extracting fields from a JSON output

try the following

1.png2.png

 

Four Stars

Re: Extracting fields from a JSON output

The bellow setting worked.

 

Thank you

 

Raj.worked.png

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

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now