<?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: Parsing multiple input JSON files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259252#M40792</link>
    <description>It's often easier to convert the JSON to a CSV flat file first then import that into tables.&lt;BR /&gt;There are some free converters like&amp;nbsp;json-csv.com</description>
    <pubDate>Mon, 09 Mar 2015 14:39:47 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2015-03-09T14:39:47Z</dc:date>
    <item>
      <title>Parsing multiple input JSON files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259248#M40788</link>
      <description>Hello All,&lt;BR /&gt;We have a requirement to read data from multiple json files stored at a particular location and transform all data and finally insert it to a postgre db.&amp;nbsp;&lt;BR /&gt;I am using Talend tFileInputJSON component to read json file, but i can read only 1 JSON file.&amp;nbsp;&lt;BR /&gt;Since i am fairly new to Talend, looking for experts opinion here on how to tackle this situation.&amp;nbsp;&lt;BR /&gt;Any support appriciated.&lt;BR /&gt;Thanks,&lt;BR /&gt;Manesh</description>
      <pubDate>Mon, 09 Mar 2015 04:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259248#M40788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T04:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiple input JSON files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259249#M40789</link>
      <description>Welcome to Talend!&amp;nbsp;&lt;BR /&gt;follow the instructions to get your job done.&amp;nbsp;&lt;BR /&gt;Your job design should be like this.&amp;nbsp;&lt;BR /&gt;tFileList--iterate--tFileinputJson---tMap--youroutput.&lt;BR /&gt;&lt;BR /&gt;Add &lt;A href="http://dwetl.com/tag/tfilelist/" target="_blank" rel="nofollow noopener noreferrer"&gt;tfileList &lt;/A&gt;component, set the directory path where all files stored.&amp;nbsp;&lt;BR /&gt;Add file mask as per your file names default with "*.*".&amp;nbsp;&lt;BR /&gt;Connect tFileList to tFileInputJson with "iterate" flow.&amp;nbsp;&lt;BR /&gt;you will have " file name with path" in tFileList global variables. add this global variable to tFileInputJosn file path text box.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;global variable which store the file name with path.&amp;nbsp;&lt;BR /&gt;&lt;PRE&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Mar 2015 06:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259249#M40789</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiple input JSON files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259250#M40790</link>
      <description>Thanks for your help Umesh.. Multiple file parsing Worked perfectly !
&lt;BR /&gt;One question, can tMap hold data from all the json files before inserting into db or do i need to insert one by one ?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Manesh</description>
      <pubDate>Mon, 09 Mar 2015 07:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259250#M40790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T07:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiple input JSON files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259251#M40791</link>
      <description>use tBufferoutput and input component to hold the result in buffer then insert this result in db.&amp;nbsp;</description>
      <pubDate>Mon, 09 Mar 2015 08:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259251#M40791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiple input JSON files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259252#M40792</link>
      <description>It's often easier to convert the JSON to a CSV flat file first then import that into tables.&lt;BR /&gt;There are some free converters like&amp;nbsp;json-csv.com</description>
      <pubDate>Mon, 09 Mar 2015 14:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259252#M40792</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-03-09T14:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiple input JSON files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259253#M40793</link>
      <description>Thanks Umesh and Holga for your inputs. I will try to follow it. Basically my JSON has few nested loops and i need to put some custom logic before inserting in database,so converting into csv may not help my purpose.&amp;nbsp;</description>
      <pubDate>Tue, 10 Mar 2015 02:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259253#M40793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-10T02:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiple input JSON files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259254#M40794</link>
      <description>if you share input json file, then we can suggest better solution.&amp;nbsp;</description>
      <pubDate>Tue, 10 Mar 2015 05:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259254#M40794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-10T05:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiple input JSON files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259255#M40795</link>
      <description>Thanks Umesh,
&lt;BR /&gt;
&lt;BR /&gt;Below is my sample json file with very few fields,&amp;nbsp;
&lt;BR /&gt;{"prod_code":"2568945","default_sku_cd":"010101001","sku_list":,"color_details_list":,"size_details_list":,"length_details_list":,"price":"12.00",}
&lt;BR /&gt;
&lt;BR /&gt;So here I want to achieve 2 things,
&lt;BR /&gt;1st Job : read each file like above and Insert sku_list row by row into db, but before that i need to map fields like color_code in color_details_list array to get respective color name or if any field is null then replace by "-" before inserting record.&amp;nbsp;
&lt;BR /&gt;2nd Job : Insert level 1 fields (ex.&amp;nbsp;prod_code,default_sku_cd,price etc) but before that loop through&amp;nbsp;sku_list&amp;nbsp;&amp;nbsp;for few details (ex. sku_price,color_code,color_name) for sku_code matching with default_sku_cd and then add all these details as &amp;nbsp;a single row.&amp;nbsp;
&lt;BR /&gt;Since i am fairly new to Talend, unable to decide what approach to take to find solution for above problems. Any directions, help is highly appreciated.&amp;nbsp;</description>
      <pubDate>Tue, 10 Mar 2015 08:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-multiple-input-JSON-files/m-p/2259255#M40795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-10T08:19:16Z</dc:date>
    </item>
  </channel>
</rss>

