<?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 Parse JSON column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307702#M79117</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a text file with 2 columns:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First column contains Keywords. e.g. "Apple TV"&lt;/LI&gt;&lt;LI&gt;Second column contains&amp;nbsp;one JSON with all the returned items for&amp;nbsp;that keyword.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The delimiter between the&amp;nbsp;two columns are 2 pipe delimiters "||"&lt;BR /&gt;&lt;BR /&gt;Example of the file:&lt;/P&gt;&lt;PRE&gt;apple tv||{"items":{"items": {"item":[{"itemId": 35364564576},{"itemId": 23425436456}]}}}&lt;BR /&gt;amazon echo||{"items":{"items": {"item":[{"itemId": 4563457657},{"itemId": 67868678678}]}}}&lt;/PRE&gt;&lt;P&gt;I need to build a job that extract the keyword and extract it's relevant items from the JSON&lt;BR /&gt;&lt;BR /&gt;How I would like the output to look like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Keyword&lt;/TD&gt;&lt;TD&gt;ItemID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apple tv&lt;/TD&gt;&lt;TD&gt;35364564576&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apple tv&lt;/TD&gt;&lt;TD&gt;23425436456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;amazon echo&lt;/TD&gt;&lt;TD&gt;4563457657&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;amazon echo&lt;/TD&gt;&lt;TD&gt;67868678678&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I know it might be very simple, but It's been a while since I used Talend and from some reason can't get it work.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 02:31:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-09T02:31:05Z</dc:date>
    <item>
      <title>Parse JSON column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307702#M79117</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a text file with 2 columns:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First column contains Keywords. e.g. "Apple TV"&lt;/LI&gt;&lt;LI&gt;Second column contains&amp;nbsp;one JSON with all the returned items for&amp;nbsp;that keyword.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The delimiter between the&amp;nbsp;two columns are 2 pipe delimiters "||"&lt;BR /&gt;&lt;BR /&gt;Example of the file:&lt;/P&gt;&lt;PRE&gt;apple tv||{"items":{"items": {"item":[{"itemId": 35364564576},{"itemId": 23425436456}]}}}&lt;BR /&gt;amazon echo||{"items":{"items": {"item":[{"itemId": 4563457657},{"itemId": 67868678678}]}}}&lt;/PRE&gt;&lt;P&gt;I need to build a job that extract the keyword and extract it's relevant items from the JSON&lt;BR /&gt;&lt;BR /&gt;How I would like the output to look like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Keyword&lt;/TD&gt;&lt;TD&gt;ItemID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apple tv&lt;/TD&gt;&lt;TD&gt;35364564576&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apple tv&lt;/TD&gt;&lt;TD&gt;23425436456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;amazon echo&lt;/TD&gt;&lt;TD&gt;4563457657&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;amazon echo&lt;/TD&gt;&lt;TD&gt;67868678678&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I know it might be very simple, but It's been a while since I used Talend and from some reason can't get it work.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 02:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307702#M79117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-09T02:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parse JSON column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307703#M79118</link>
      <description>First you need to split the columns of your file. I'm assuming you can do that using the tFileInputDelimited component. You should have 2 columns. 
&lt;BR /&gt; 
&lt;BR /&gt;Next you need a tExtractJsonField component. There are 2 things to think about here; your keywords column needs to be a "pass-through" column (by that I mean no JSON Path should be specified), the items data will need a JSON path. BUT you will also need a Loop set. 
&lt;BR /&gt; 
&lt;BR /&gt;Take a look at this question and see if you can extrapolate from it ( 
&lt;A href="https://community.qlik.com/s/feed/0D73p000004kF24CAE#M17361" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/JSON-Array-values-to-Rows-is-there-a-better-way/m-p/52347#M17361&lt;/A&gt;). 
&lt;BR /&gt; 
&lt;BR /&gt;Unfortunately I'm at an airport with just a smart phone so cannot really go into much more detail. Hope this helps.</description>
      <pubDate>Mon, 12 Mar 2018 04:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307703#M79118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-12T04:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parse JSON column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307704#M79119</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please find the job below to split json field.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Json1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsoW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148979iAE4ABB1D2A97371B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsoW.png" alt="0683p000009LsoW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Json2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lt1Z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130077i71E56082E4EF492D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lt1Z.png" alt="0683p000009Lt1Z.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 21:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307704#M79119</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-03-12T21:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parse JSON column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307705#M79120</link>
      <description>Super! thankssss !!</description>
      <pubDate>Tue, 13 Mar 2018 21:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307705#M79120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-13T21:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parse JSON column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307706#M79121</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to parse data from a JSON file I have, I am using tFileInputJson and logging the rows.&lt;/P&gt;
&lt;P&gt;When the file has only one record, the job runs fine and give me the desired result.&lt;/P&gt;
&lt;P&gt;But when the file has more than one record, I get the error "Unable to find next state", I am attaching all the files.&lt;/P&gt;
&lt;P&gt;Could you please let me know how I can run this job for the file with multiple records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Alok&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ltay"&gt;Error.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ltbl"&gt;Job.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtPh"&gt;Success.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ltbv"&gt;File_with_multiple_record.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtLD"&gt;File_with_Single_record.txt&lt;/A&gt;</description>
      <pubDate>Fri, 07 Sep 2018 02:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-JSON-column/m-p/2307706#M79121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-07T02:03:28Z</dc:date>
    </item>
  </channel>
</rss>

