<?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: CSV with JSON field in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/CSV-with-JSON-field/m-p/2316818#M87332</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How did you write xpath/jsonpath query in your tExtractJsonFields component? Could you please post tExtractJsonFields component setting screenshot here?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 10:02:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-09T10:02:58Z</dc:date>
    <item>
      <title>CSV with JSON field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-with-JSON-field/m-p/2316817#M87331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I need to make a job to read some data from an API.&lt;/P&gt; 
&lt;P&gt;The api gives me a set of data like as bellow with the headers&lt;/P&gt; 
&lt;PRE&gt;event_type, event_date, event_value(json field which can have one or more arrays to product), os_type
click,2019-01-29 22:03:14,
"{""af_payment_method"":""MASTERCARD (4x) - One Click Buy"",""af_receipt_id"":""917641310"",""af_currency"":""BRL"",
""product"":[{""af_currency"":""BRL"",""af_content_color"":""92409732"",""af_price"":119.99,""af_content_id"":""924097"",""af_quantity"":1}],
""product"":[{""af_currency"":""BRL"",""af_content_color"":""92409712"",""af_price"":229.99,""af_content_id"":""924097"",""af_quantity"":2}],
""product"":[{""af_currency"":""BRL"",""af_content_color"":""92409332"",""af_price"":229.99,""af_content_id"":""924097"",""af_quantity"":3}],
""product"":[{""af_currency"":""BRL"",""af_content_color"":""92409442"",""af_price"":119.99,""af_content_id"":""924097"",""af_quantity"":1}],
""af_revenue"":119.99}",
iphone
click,2019-01-29 22:03:14,
""{""af_payment_method"":""MASTERCARD (4x) - One Click Buy"",""af_receipt_id"":""917641310"",""af_currency"":""BRL"",
""product"":[{""af_currency"":""BRL"",""af_content_color"":""96609732"",""af_price"":119.99,""af_content_id"":""924097"",""af_quantity"":1}],
""af_revenue"":19.99}"",
android&lt;/PRE&gt; 
&lt;P&gt;The API gives normal fields and a json field and i need them all, normal fields and json field.&lt;/P&gt; 
&lt;P&gt;current i'm trying same the topic &lt;A href="https://community.qlik.com/s/feed/0D53p00007vCkH1CAK" target="_blank" rel="noopener"&gt;https://community.talend.com/t5/Design-and-Development/extracting-JSON-fields-from-a-csv-file/td-p/138467&lt;/A&gt; but failed miserable.&lt;/P&gt; 
&lt;P&gt;step 1- trest -&amp;gt; tjavarow -&amp;gt; tfileoutputdelimited (this is ok)&lt;BR /&gt;step 2- tfileinputdelimited -&amp;gt; to textractjsonfields -&amp;gt; to toracleoutput table&lt;/P&gt; 
&lt;P&gt;problems:&lt;BR /&gt;a - step 2, the data fields are separeted by comma and the body of json array too, it gives error on edit schema&lt;BR /&gt;b - the json fields have 2 double quotes which gives error&lt;BR /&gt;c - is there some way to direct read by tjavarow of step 1 -&amp;gt; to textractjsonfields -&amp;gt; to toracleoutput? remember i need noormal fields and json fields&lt;/P&gt; 
&lt;P&gt;by the example data i'll have 5 lines on the table, because dataset 1 got 4 products and dataset 2 have 1 product&lt;/P&gt; 
&lt;P&gt;Someone can help me please.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 01:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-with-JSON-field/m-p/2316817#M87331</guid>
      <dc:creator>André-Baependi</dc:creator>
      <dc:date>2019-07-29T01:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: CSV with JSON field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/CSV-with-JSON-field/m-p/2316818#M87332</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;How did you write xpath/jsonpath query in your tExtractJsonFields component? Could you please post tExtractJsonFields component setting screenshot here?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 10:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/CSV-with-JSON-field/m-p/2316818#M87332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T10:02:58Z</dc:date>
    </item>
  </channel>
</rss>

