Converting JSON file into CSV flat file.

Four Stars

Converting JSON file into CSV flat file.

Hello, I'm quite new in developing in Talend and I'm facing a challenge to transform (flatten) a JSON file coming from Facebook Ad Insights into a CSV flat file. Attached the JSON file: as far as I understand the column "RelevanceScore" has a CRLF and data between { and } appears on different lines rather than appearing on a single line. We need to transform this file to get one line per master record (so no CRLF for "RelevanceScore"). Can you please assist me with the creation of the job ?

Thanks a lot

Fabien 

Moderator

Re: Converting JSON file into CSV flat file.

Hi,

Wha does your expected result look like? Here is a tExtractJsonField component which extracts the desired data from incoming JSON fields based on the XPath or JSONPath query.

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

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