<?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: Extracting JSON data from an API and then reconstructing it in a CSV in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201063#M3310</link>
    <description>&lt;P&gt;We have experience in solving problems JSON data.&lt;BR /&gt;If you need support, feel free to ask for help -&amp;nbsp;&lt;A href="https://whidegroup.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://whidegroup.com/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2019 15:20:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-26T15:20:04Z</dc:date>
    <item>
      <title>Extracting JSON data from an API and then reconstructing it in a CSV</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201060#M3307</link>
      <description>&lt;P&gt;HI guys,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm writing a job which will call an API for an eCommerce site which will return all unprocessed orders. I then need to write this information to a CSV file (1 CSV per order). The CSV should contain an initial row with header information (eg. customer &amp;amp; address info) and then a line per order item.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've currently managed to extract the information using several tExtractJSONFields but now I'm struggling to find a way to create the required CSV.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have also tried using ThMap with no success, I would love to hear your thoughts on the way best to achieve this and if I'm completely in the wrong ballpark.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;API Response:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{
  "message": "Fetched order(s)",
  "data": [
    {
      "orderId": 1,
      "orderNumber": "ORDER0001",
      "createdAt": "2019-08-13T14:58:07+01:00",
      "deliveryAddress": {
        "id": 1,
        "town": "dasd",
        "country": "ada",
        "lastName": "asdasd",
        "postcode": "asda",
        "createdAt": "2019-08-13T14:57:47+01:00",
        "firstName": "sakdmsad",
        "updatedAt": "2019-08-13T14:57:47+01:00",
        "thoroughfare": "adasd",
        "houseNameNumber": "12",
        "isDefaultBillingAddress": true,
        "isDefaultShippingAddress": true
      },
      "orderLines": [
        {
          "orderLineId": 1,
          "idealUin": "DELIVERY",
          "supplierUin": "DELIVERY",
          "quantity": 2,
          "unitPrice": "5.00"
        },
        {
          "orderLineId": 2,
          "idealUin": "product0004",
          "supplierUin": "product0004",
          "quantity": 2,
          "unitPrice": "5.00"
        }
      ]
    },
    {
      "orderId": 2,
      "orderNumber": "ORDER0002",
      "createdAt": "2019-08-13T14:58:07+01:00",
      "deliveryAddress": {
        "id": 1,
        "town": "dasd",
        "country": "ada",
        "lastName": "asdasd",
        "postcode": "asda",
        "createdAt": "2019-08-13T14:57:47+01:00",
        "firstName": "sakdmsad",
        "updatedAt": "2019-08-13T14:57:47+01:00",
        "thoroughfare": "adasd",
        "houseNameNumber": "12",
        "isDefaultBillingAddress": true,
        "isDefaultShippingAddress": true
      },
      "orderLines": [
        {
          "orderLineId": 1,
          "idealUin": "DELIVERY",
          "supplierUin": "DELIVERY",
          "quantity": 2,
          "unitPrice": "5.00"
        },
        {
          "orderLineId": 2,
          "idealUin": "product0005",
          "supplierUin": "product0005",
          "quantity": 2,
          "unitPrice": "5.00"
        }
      ]
    }
  ]
}&lt;/PRE&gt; 
&lt;P&gt;Talend job currently:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6zp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149498iB9ABAD4D9A638B7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6zp.png" alt="0683p000009M6zp.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6zu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134769i3EF5E77EA9892413/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6zu.png" alt="0683p000009M6zu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend3.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6zz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146831iF26546F0FC912785/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6zz.png" alt="0683p000009M6zz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Talend4.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M704.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155093iC1665DA01EB3DFEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M704.png" alt="0683p000009M704.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;An example of the information returned in the tLogRow is below;&lt;/P&gt; 
&lt;PRE&gt;.-----------+------------+---------------+--------+---------+----------+---------------+---------------+---------------------+--------------+------------+------------------+-------+------------+---------------------------------------------------------.
|                                                                                                                        tLogRow_3                                                                                                                         |
|=----------+------------+---------------+--------+---------+----------+---------------+---------------+---------------------+--------------+------------+------------------+-------+------------+--------------------------------------------------------=|
|orderLineId|idealUin    |supplierUin    |quantity|unitPrice|firstName |lastName       |houseNameNumber|thoroughfare         |town          |postcode    |country           |orderId|orderNumber |createdAt                                                |
|=----------+------------+---------------+--------+---------+----------+---------------+---------------+---------------------+--------------+------------+------------------+-------+------------+--------------------------------------------------------=|
|1          |PRODUCT0001 |PRODUCT0001    |1       |5.00     |["Test"] |["Test"]       |["11"]         |["West Road"]         |[London"]     |["NE1 2DW"]  |["UK"]           |[1]    |["ORDER0001"] |["2019-07-26T09:39:21+00:00"]|&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201060#M3307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting JSON data from an API and then reconstructing it in a CSV</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201061#M3308</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Is there any update for your issue?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 06:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201061#M3308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T06:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting JSON data from an API and then reconstructing it in a CSV</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201062#M3309</link>
      <description>&lt;P&gt;Hi Sabrina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to a lack of support we had to totally bypass Talend and just change the data from the source, so it was received in a csv format rather than JSON.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 09:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201062#M3309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T09:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting JSON data from an API and then reconstructing it in a CSV</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201063#M3310</link>
      <description>&lt;P&gt;We have experience in solving problems JSON data.&lt;BR /&gt;If you need support, feel free to ask for help -&amp;nbsp;&lt;A href="https://whidegroup.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://whidegroup.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 15:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-JSON-data-from-an-API-and-then-reconstructing-it-in-a/m-p/2201063#M3310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-26T15:20:04Z</dc:date>
    </item>
  </channel>
</rss>

