<?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: Extract name of JSON fields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291096#M64310</link>
    <description>Interesting.</description>
    <pubDate>Mon, 26 Jun 2017 19:56:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-26T19:56:33Z</dc:date>
    <item>
      <title>Extract name of JSON fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291093#M64307</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;imagine the following JSON schema:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{
   ...
   
   "structure" : {
      "time_field" : {
         "date" : {
            "name" : "Date",
            "type" : "datetime"
         }
      },
      "dimensions" : {
         "campaign_id" : {
            "access" : true,
            "name" : "Campaign ID",
            "type" : "id",
         },
         "campaign_name" : {
            "name" : "Campaign Name",
            "maxLength" : 256,
            "type" : "string"
         },
         "strategy_id" : {
            "access" : true,
            "name" : "Strategy ID",
            "type" : "id"
         },
         "strategy_name" : {
            "name" : "Strategy Name",
            "maxLength" : 256,
            "type" : "string"
         }
      },
	  
      ...
}&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now I need to extract the &lt;STRONG&gt;name&lt;/STRONG&gt; of each &lt;STRONG&gt;dimension&lt;/STRONG&gt; (campaign_id, strategy_id etc.).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is my try via tExtractJSONFields:&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="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LutK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134147iEEE07A7634652C99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LutK.png" alt="0683p000009LutK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvow.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158256i888867572920D979/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvow.png" alt="0683p000009Lvow.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But I only get the name of the first dimension (campaign_id).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please help?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 16:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291093#M64307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-22T16:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract name of JSON fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291094#M64308</link>
      <description>Hello
&lt;BR /&gt;You should define 4 columns to map each name. I would suggest you to define a Json metadata following the wizard under Repository-&amp;gt;Metadata. 
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 23 Jun 2017 03:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291094#M64308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T03:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract name of JSON fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291095#M64309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I solved this one on my own:&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="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvDl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148640i8B6237D4B398B860/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvDl.png" alt="0683p000009LvDl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks anyway!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 19:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291095#M64309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-26T19:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extract name of JSON fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291096#M64310</link>
      <description>Interesting.</description>
      <pubDate>Mon, 26 Jun 2017 19:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291096#M64310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-26T19:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract name of JSON fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291097#M64311</link>
      <description>&lt;P&gt;Right! I can now iterate over each dimension name which is really helpful facing the fact that I've to process json files with&amp;nbsp;about 50&amp;nbsp;dimension elements&amp;nbsp;- no separate (static)&amp;nbsp;columns needed.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 08:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-name-of-JSON-fields/m-p/2291097#M64311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-27T08:25:34Z</dc:date>
    </item>
  </channel>
</rss>

