<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data ingestion from JSON format to CSV in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-ingestion-from-JSON-format-to-CSV/m-p/2318835#M89144</link>
    <description>&lt;P&gt;take the complete output in a string and then use tJavaRow.&lt;/P&gt;&lt;P&gt;in tJavaRow replace all this escape character with null.&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;String text = input_row.data;&lt;/P&gt;&lt;P&gt;input_row.data = (input_row.data).replaceAll("\\r","');&lt;/P&gt;&lt;P&gt;input_row.data = (input_row.data).replaceAll("\\n","');&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;output_row.data = input_row.data;&lt;/P&gt;&lt;P&gt;Then read this data into the tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 07:26:21 GMT</pubDate>
    <dc:creator>Prakhar1</dc:creator>
    <dc:date>2021-01-15T07:26:21Z</dc:date>
    <item>
      <title>Data ingestion from JSON format to CSV</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-ingestion-from-JSON-format-to-CSV/m-p/2318834#M89143</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of my customer is struggling ingesting data to AWS S3 buckets from JSON format data returned from an Web Application API call.&lt;/P&gt;&lt;P&gt;He is is using &lt;/P&gt;&lt;P&gt;Talend&amp;nbsp;API&amp;nbsp;generated csv files &lt;/P&gt;to complete the process.&lt;P&gt;Precisely, he is struggling escaping the line breaks and the double quotes returned in JSON by the API to push the to the CSV.&lt;/P&gt;&lt;P&gt;Do somebody knows any tools in Talend to complete this task.&lt;/P&gt;&lt;P&gt;Here is a sample of the JSON data &lt;/P&gt;&lt;P&gt;returned by the API&lt;/P&gt;:&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"@odata.context": "xxx",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"@odata.type": ""xxx",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"@odata.id": "xxx",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"@odata.editLink": "xxx",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"Id": "38c7fb88-d8f6-4444-bca4-a230654eb4ce",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"Deleted": false,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"DateModified": "2020-11-15T19:54:56.907Z",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"DateCreated": "2020-11-15T19:46:07.093Z",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"ALSITEINACTIVAT": null,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"ALSITESCADACODE": null,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"SiteCode": "307",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"SiteComment": null,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"SiteID": 1361,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"SiteLatitude": "48.5548747",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"SiteLongitude": "50.854248",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"SiteName": "xxxx",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"StreetAdress": "(Port Cartier) \"Head Office\" 8878 Road 5555, Block 747\r\n+878 5445 23525+\r\454 8784 8787",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"ZipPostalCode": "PO box 86744"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-ingestion-from-JSON-format-to-CSV/m-p/2318834#M89143</guid>
      <dc:creator>BLAPOINTE1610678245</dc:creator>
      <dc:date>2024-11-16T00:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data ingestion from JSON format to CSV</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-ingestion-from-JSON-format-to-CSV/m-p/2318835#M89144</link>
      <description>&lt;P&gt;take the complete output in a string and then use tJavaRow.&lt;/P&gt;&lt;P&gt;in tJavaRow replace all this escape character with null.&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;String text = input_row.data;&lt;/P&gt;&lt;P&gt;input_row.data = (input_row.data).replaceAll("\\r","');&lt;/P&gt;&lt;P&gt;input_row.data = (input_row.data).replaceAll("\\n","');&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;output_row.data = input_row.data;&lt;/P&gt;&lt;P&gt;Then read this data into the tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 07:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-ingestion-from-JSON-format-to-CSV/m-p/2318835#M89144</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2021-01-15T07:26:21Z</dc:date>
    </item>
  </channel>
</rss>

