<?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: problem while reading json file input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/problem-while-reading-json-file-input/m-p/2230693#M21239</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you can not extract all data with single&amp;nbsp;&lt;SPAN&gt;textractjsonfields&amp;nbsp;component&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;it is because you are required data from "named" JSON keys, not from the array where you could use [*] but from the dynamic list of keys - 4,5,10,11 etc&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;you need do this with some java code, check for examples:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjA8CAK" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/Unable-to-parse-JSON-quot-name-quot-using-tExtractJSON/m-p/132301?advanced=false&amp;amp;author_id=45&amp;amp;collapse_discussion=true&amp;amp;filter=authorId&amp;amp;q=json&amp;amp;search_type=thread&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnl0CAC" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/Need-help-using-tExtractJSONFields-to-parse-JSON-input/m-p/24855?author_id=45&amp;amp;collapse_discussion=true&amp;amp;filter=authorId&amp;amp;page=2&amp;amp;q=json&amp;amp;search_type=thread&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;or search on StackOverflow for - "extract JSON keys name" for the more appropriate solution&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;regards, Vlad&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 00:33:36 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-04-05T00:33:36Z</dc:date>
    <item>
      <title>problem while reading json file input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/problem-while-reading-json-file-input/m-p/2230692#M21238</link>
      <description>&lt;P&gt;Hi, am having a json&amp;nbsp;input file with the following format. If I read it using tfileinputjson,&amp;nbsp;I may have n number of columns since each id number is an element in json structure.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"result_ok": true,&lt;BR /&gt;"total_count": 79463,&lt;BR /&gt;"page": "7",&lt;BR /&gt;"total_pages": 15893,&lt;BR /&gt;"results_per_page": "5",&lt;BR /&gt;"data": [&lt;BR /&gt;{&lt;BR /&gt;"id": "55",&lt;BR /&gt;"contact_id": "",&lt;BR /&gt;"status": "Partial",&lt;BR /&gt;"is_test_data": "0",&lt;BR /&gt;"date_submitted": "2018-09-13 02:00:59 GMT",&lt;BR /&gt;"session_id": "1536804052_5b99c4d43e0069.81751855",&lt;BR /&gt;"language": "English",&lt;BR /&gt;"date_started": "2018-09-13 02:00:59 GMT",&lt;BR /&gt;"link_id": "191418",&lt;BR /&gt;"url_variables": {&lt;BR /&gt;"region": {&lt;BR /&gt;"key": "region",&lt;BR /&gt;"value": "emea",&lt;BR /&gt;"type": "url"&lt;BR /&gt;},&lt;BR /&gt;"uni": {&lt;BR /&gt;"key": "uni",&lt;BR /&gt;"value": "qsfair",&lt;BR /&gt;"type": "url"&lt;BR /&gt;},&lt;BR /&gt;"country": {&lt;BR /&gt;"key": "country",&lt;BR /&gt;"value": "uk",&lt;BR /&gt;"type": "url"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"ip_address": null,&lt;BR /&gt;"referer": "&lt;A href="http://www.surveygizmo.eu/s3/90100193/2f67b9b67374" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://www.surveygizmo.eu/s3/90100193/2f67b9b67374&lt;/A&gt;",&lt;BR /&gt;"user_agent": null,&lt;BR /&gt;"response_time": 0,&lt;BR /&gt;"data_quality": [],&lt;BR /&gt;"longitude": "",&lt;BR /&gt;"latitude": "",&lt;BR /&gt;"country": "",&lt;BR /&gt;"city": "",&lt;BR /&gt;"region": "",&lt;BR /&gt;"postal": "",&lt;BR /&gt;"dma": "",&lt;BR /&gt;"survey_data": {&lt;BR /&gt;"4": {&lt;BR /&gt;"id": 4,&lt;BR /&gt;"type": "MENU",&lt;BR /&gt;"question": "&amp;lt;strong&amp;gt;What national passport will you be travelling on when you study overseas?&amp;lt;/strong&amp;gt;",&lt;BR /&gt;"section_id": 13,&lt;BR /&gt;"shown": false&lt;BR /&gt;},&lt;BR /&gt;"5": {&lt;BR /&gt;"id": 5,&lt;BR /&gt;"type": "RADIO",&lt;BR /&gt;"question": "&amp;lt;strong&amp;gt;What gender are you?&amp;lt;/strong&amp;gt;",&lt;BR /&gt;"section_id": 13,&lt;BR /&gt;"shown": false&lt;BR /&gt;},&lt;BR /&gt;"10": {&lt;BR /&gt;"id": 10,&lt;BR /&gt;"type": "RADIO",&lt;BR /&gt;"parent": 9,&lt;BR /&gt;"question": "Full-time study",&lt;BR /&gt;"section_id": 20,&lt;BR /&gt;"shown": false&lt;BR /&gt;},&lt;BR /&gt;"11": {&lt;BR /&gt;"id": 11,&lt;BR /&gt;"type": "RADIO",&lt;BR /&gt;"parent": 9,&lt;BR /&gt;"question": "Part-time study",&lt;BR /&gt;"section_id": 20,&lt;BR /&gt;"shown": false&lt;BR /&gt;},&lt;BR /&gt;"15": {&lt;BR /&gt;"id": 15,&lt;BR /&gt;"type": "RADIO",&lt;BR /&gt;"question": "&amp;lt;strong&amp;gt;At what level are you currently planning to study?&amp;lt;/strong&amp;gt;",&lt;BR /&gt;"section_id": 20,&lt;BR /&gt;"shown": false&lt;BR /&gt;} and so on......&lt;/P&gt; 
&lt;P&gt;I want the columns id, type, question, section_id, shown along with the data. But while I try reading the input using tfileinputjson&amp;nbsp;am facing this issue as shown in the picture. I&amp;nbsp;have tried to read the element subquery as a single row and then extract fields&amp;nbsp;using textractjsonfields. But it didn't work out. How can I read the required data from each ids? Pls help&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 14:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/problem-while-reading-json-file-input/m-p/2230692#M21238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-03T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem while reading json file input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/problem-while-reading-json-file-input/m-p/2230693#M21239</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you can not extract all data with single&amp;nbsp;&lt;SPAN&gt;textractjsonfields&amp;nbsp;component&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;it is because you are required data from "named" JSON keys, not from the array where you could use [*] but from the dynamic list of keys - 4,5,10,11 etc&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;you need do this with some java code, check for examples:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjA8CAK" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/Unable-to-parse-JSON-quot-name-quot-using-tExtractJSON/m-p/132301?advanced=false&amp;amp;author_id=45&amp;amp;collapse_discussion=true&amp;amp;filter=authorId&amp;amp;q=json&amp;amp;search_type=thread&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnl0CAC" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/Need-help-using-tExtractJSONFields-to-parse-JSON-input/m-p/24855?author_id=45&amp;amp;collapse_discussion=true&amp;amp;filter=authorId&amp;amp;page=2&amp;amp;q=json&amp;amp;search_type=thread&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;or search on StackOverflow for - "extract JSON keys name" for the more appropriate solution&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;regards, Vlad&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 00:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/problem-while-reading-json-file-input/m-p/2230693#M21239</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-04-05T00:33:36Z</dc:date>
    </item>
  </channel>
</rss>

