<?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 extracting JSON fields from a csv file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282053#M56393</link>
    <description>&lt;P&gt;Need assistainct in interpreting a csv file.&amp;nbsp; That's the easy part.&amp;nbsp; However, a couple of the fields contain JSON data.&amp;nbsp; I need to get this field out an then extract field from that JSON field.&amp;nbsp; Can it be done?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached sample files that should assist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:24:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T07:24:46Z</dc:date>
    <item>
      <title>extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282053#M56393</link>
      <description>&lt;P&gt;Need assistainct in interpreting a csv file.&amp;nbsp; That's the easy part.&amp;nbsp; However, a couple of the fields contain JSON data.&amp;nbsp; I need to get this field out an then extract field from that JSON field.&amp;nbsp; Can it be done?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached sample files that should assist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282053#M56393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282054#M56394</link>
      <description>&lt;P&gt;It would be helpful if you can specify whether you want all columns csv + json or you wish to fetch just json fields and in both cases which are the keys you wish to fetch in json fields&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 08:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282054#M56394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T08:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282055#M56395</link>
      <description>&lt;P&gt;I will find out for absolute certainty&amp;nbsp;about the json&amp;nbsp;keys I need to fetch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In as far as csv&amp;nbsp;and/or json&amp;nbsp;fields, I can of course get the fields from the csv, so, it'd be more the json&amp;nbsp;fields and then have to make each row attainable from the json&amp;nbsp;into the csv flattented out&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 00:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282055#M56395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T00:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282056#M56396</link>
      <description>&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the fields required from the JSON field&lt;/P&gt;&lt;P&gt;ADDITIONALMETADATAJSON AQF_Level&lt;BR /&gt;ADDITIONALMETADATAJSON VolumeofLearning&lt;BR /&gt;ADDITIONALMETADATAJSON CandidatureLengthFull&lt;BR /&gt;ADDITIONALMETADATAJSON CandidatureLengthPart&lt;BR /&gt;ADDITIONALMETADATAJSON ExitAward&lt;BR /&gt;ADDITIONALMETADATAJSON ExitPathway&lt;BR /&gt;ADDITIONALMETADATAJSON Admission Requirement&lt;BR /&gt;ADDITIONALMETADATAJSON SelectionCriteria&lt;BR /&gt;ADDITIONALMETADATAJSON CRICOS_Code&lt;BR /&gt;ADDITIONALMETADATAJSON ApplicationMethod&lt;BR /&gt;ADDITIONALMETADATAJSON UACCode&lt;BR /&gt;ADDITIONALMETADATAJSON DegAtarLocal&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 00:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282056#M56396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T00:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282057#M56397</link>
      <description>&lt;P&gt;it can be easily achieved through the following flow&lt;/P&gt;&lt;P&gt;tfileInputDelimited---&amp;gt;textractJsonFields,&lt;/P&gt;&lt;P&gt;and make sure to write the correct xpath/jsonpath query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI the content of json field&amp;nbsp; ADDITIONALMETADATAJSON&amp;nbsp;which you are trying to fetch is not valid&lt;/P&gt;&lt;P&gt;first make it valid and then try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Chandra Kant&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 09:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282057#M56397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T09:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282058#M56398</link>
      <description>&lt;P&gt;Thanks for your assistance thus far Chandra.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am by no means an expert in JSON files, and certainly by using the&amp;nbsp;&lt;/P&gt;&lt;P&gt;textractJsonFields,&amp;nbsp;and make sure to write the correct xpath/jsonpath query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, what do i need to do to the field to make it valid?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 23:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282058#M56398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T23:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282059#M56399</link>
      <description>&lt;P&gt;Let me make it simple for you,&lt;/P&gt; 
&lt;P&gt;first of all you need to append &amp;lt;ADDITIONALMETADATAJSON&amp;gt; field with &amp;lt;"}&amp;gt; then copy its content &amp;amp; check for&amp;nbsp;json validity online&lt;/P&gt; 
&lt;P&gt;if its valid :use tfileInputDelimited specifying the field you wish to read the json from and pass that flow to the tExtractJson .&lt;/P&gt; 
&lt;P&gt;In tExtractJson select that flow variable&amp;nbsp; from the dropdown in front of json field ,&lt;/P&gt; 
&lt;P&gt;in front of read by select jsonPath,&lt;/P&gt; 
&lt;P&gt;in Loop JsonPath Query&amp;nbsp; specify&amp;lt;"$"&amp;gt;&lt;/P&gt; 
&lt;P&gt;in mapping select every field you wish to fetch from json ( first create their schema in textractjson ) one by one in column and their corresponding json query&amp;nbsp; field would contain jsonpath query and that would depend on that key's level from the root in json string .&lt;/P&gt; 
&lt;P&gt;a snapshot attached below would help you&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Additional : make yourself familiar with jsonpath and xml path queries if you wish to work with xml and json.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;regards Chandra Kant&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snap.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0Z6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154747i324AC359D1E1DC43/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0Z6.png" alt="0683p000009M0Z6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 07:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282059#M56399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-26T07:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282060#M56400</link>
      <description>&lt;P&gt;Thanks Chandra - seems to be working well.&amp;nbsp; Appreciate that advise&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 01:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282060#M56400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-29T01:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: extracting JSON fields from a csv file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282061#M56401</link>
      <description>&lt;P&gt;Its better you marked it solved .&lt;/P&gt;&lt;P&gt;So that if anybody else is looking for something similar then he/she can take help from this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Chandra Kant&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 06:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extracting-JSON-fields-from-a-csv-file/m-p/2282061#M56401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-29T06:48:01Z</dc:date>
    </item>
  </channel>
</rss>

