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



Re: Converting JSON file into CSV flat file.


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
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.