<?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: Parse file containing multiple JSON documents in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317512#M87948</link>
    <description>Hi snigdha224, 
&lt;BR /&gt;A schema is a row description, i.e. it defines the number of fields that will be processed and passed on to the next component. 
&lt;BR /&gt;I have replied your related forum 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqDxCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Retrieving-shema-issue/td-p/107378&lt;/A&gt;. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
    <pubDate>Mon, 17 Jun 2013 05:21:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-06-17T05:21:25Z</dc:date>
    <item>
      <title>Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317505#M87941</link>
      <description>I need some help devising a strategy to parse JSON docs within a talend job (Java job, not Perl). I am using Talend Version: 5.0.2 and developing on a Mac, planning to run on a Linux box. 
&lt;BR /&gt;Unfortunately, I cannot use the tFileInputJSON component because of the format of my files -- each file contains several hundred JSON docs, with a complete JSON doc taking up one line in the file. I think the right solution is to read the file line by line then pass it into a JSON parser and from there send the results to the rest of the job. 
&lt;BR /&gt;As I see it my options are: 
&lt;BR /&gt;a) send the line input to some sort of Java JSON parser. If that's the strategy I need to take, I'd like some advice on how to deal with the output and passing that output into my tmap/other parts of the job. 
&lt;BR /&gt;b) find a Talend component that parses JSON docs, but doesn't require an input of a file with a single valid JSON format. 
&lt;BR /&gt;I've searched around for this component but can't seem to find it. From my search, it seems even the tFileInputJSON component is relatively new. 
&lt;BR /&gt;Anyone have some advice on where I should turn next? 
&lt;BR /&gt;Thanks in advance. 
&lt;BR /&gt; 
&lt;BR /&gt;This post closely mirrors a previous, unanswered post: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCprjCAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Iterate-Through-A-Multi-Row-JSON-File/td-p/104945&lt;/A&gt;</description>
      <pubDate>Wed, 04 Apr 2012 01:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317505#M87941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-04T01:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317506#M87942</link>
      <description>Hi
&lt;BR /&gt;TOS doesn't support a JSON component like tExtractXMLField.
&lt;BR /&gt;For any new feature or new component, please report it on 
&lt;A href="http://jira.talendforge.org/secure/Dashboard.jspa" target="_blank" rel="nofollow noopener noreferrer"&gt;BugTracker&lt;/A&gt;.
&lt;BR /&gt;So the workaround is to create a job as follows.
&lt;BR /&gt;No.1: Read line by line from this file.
&lt;BR /&gt;No.2: Save current line into a new delimited file called temp.txt.
&lt;BR /&gt;No.3: Use tFileInputJson to extract temp.txt and do your job logic.
&lt;BR /&gt;No.4: Use tFileDelete to delete temp.txt and start a new loop for next line.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Thu, 05 Apr 2012 08:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317506#M87942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-05T08:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317507#M87943</link>
      <description>Thanks pedro -- I think that's going to have to work for now. I've also opened a question at stack overflow for anyone who'd like to follow what's going on there. Will keep you posted if we end up making a component/routine. Also filed a request! &lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/10003100/json-parser-for-talend" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/10003100/json-parser-for-talend&lt;/A&gt;</description>
      <pubDate>Wed, 11 Apr 2012 01:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317507#M87943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-11T01:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317508#M87944</link>
      <description>Alright pedro -- I am about to share with you how bad I am with talend...&lt;BR /&gt;How do I accomplish No. 1 and No. 2 on your list? I know tFileInputFullRow reads line by line, but I am having trouble getting it to write a single one of those rows. It seems to read each line -- then write each line. So if I have a two line file, I cannot figure out how to split one line off to write. &lt;BR /&gt;Care to give me another push?&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 11 Apr 2012 03:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317508#M87944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-11T03:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317509#M87945</link>
      <description>Hi&lt;BR /&gt;You can create a job as the following images.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 11 Apr 2012 04:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317509#M87945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-11T04:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317510#M87946</link>
      <description>Pedro! Thanks so much. Learned a ton from your example and got it to work. Really really appreciate it.</description>
      <pubDate>Wed, 11 Apr 2012 18:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317510#M87946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-11T18:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317511#M87947</link>
      <description>Hi,
&lt;BR /&gt;Can any one help me with this!
&lt;BR /&gt;Iam new to talend, I want to load data from mongodb source. In basic settings I have option of edit schema, how to specify schema for nested document in mongodb??
&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Tue, 11 Jun 2013 09:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317511#M87947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-11T09:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317512#M87948</link>
      <description>Hi snigdha224, 
&lt;BR /&gt;A schema is a row description, i.e. it defines the number of fields that will be processed and passed on to the next component. 
&lt;BR /&gt;I have replied your related forum 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqDxCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Retrieving-shema-issue/td-p/107378&lt;/A&gt;. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 17 Jun 2013 05:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317512#M87948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-17T05:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317513#M87949</link>
      <description>Hello pedro - I'm not seeing any images in your post dtd:&amp;nbsp; 2012-04-11 04:15:09.&amp;nbsp; I know it's been over 3 years ago, but any chance you still have those images and would be kind enough to post them?&amp;nbsp; I need to do something similar, but have limited Talend experience.&amp;nbsp; &lt;BR /&gt;Many thanks!</description>
      <pubDate>Thu, 17 Sep 2015 22:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317513#M87949</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-09-17T22:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317514#M87950</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLfuAAG"&gt;@Moe&lt;/A&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLkbAAG"&gt;@pedrohuo&lt;/A&gt;&amp;nbsp;I have same requirement, Can you guys please tell me the solution, so I can achieve it.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 07:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317514#M87950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-08T07:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parse file containing multiple JSON documents</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317515#M87951</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLfuAAG"&gt;@Moe&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsaeAAC"&gt;@xdshi&lt;/A&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LO9GAAW"&gt;@gbadge&lt;/A&gt;&amp;nbsp;Trying to solve similar problem, not able to see any images shared by Pedro, has anybody solved this problem yet?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 01:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-file-containing-multiple-JSON-documents/m-p/2317515#M87951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-08T01:15:41Z</dc:date>
    </item>
  </channel>
</rss>

