<?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 JSON field extraction - simple array and key-value-pairs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363915#M127723</link>
    <description>&lt;P&gt;Hello everyone&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have two JSON questions.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Consider below input JSON &lt;STRONG&gt;fragment&lt;/STRONG&gt; coming from JSON Input File:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"source":{&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;other JSON fields here&lt;/EM&gt;&amp;nbsp;....&lt;BR /&gt;&lt;STRONG&gt;"NetworkIdList":["networkdevice_1","networkdevice_2","networkdevice_3"],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"KeyValuePairs":{"Gearbox":"Automatic","Drive":"FrontWheelDrive","BodyStyle":"SUV","Make":"Mitsubishi"},&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;other JSON fields here&lt;/EM&gt;&amp;nbsp;....&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;The JSON is in BOLD font.&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Q(1) simple array extraction (no sub-fields inside array elements)&lt;BR /&gt;Q(2) Key-Value-Pair extraction&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Output desired: for JSON simple array marked as Q(1)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;NetworkID:&lt;/STRONG&gt;&lt;BR /&gt;networkdevice_1&lt;BR /&gt;networkdevice_2&lt;BR /&gt;networkdevice_3&lt;/P&gt; 
&lt;P&gt;---------------------------------------------&lt;/P&gt; 
&lt;P&gt;Output Desired: for JSON key-value-pair Q(2)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value:&lt;/STRONG&gt;&lt;BR /&gt;Gearbox &amp;nbsp; &amp;nbsp; &amp;nbsp;Automatic&lt;BR /&gt;Drive &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FrontWheelDrive&lt;BR /&gt;BodyStyle &amp;nbsp; SUV&lt;BR /&gt;Make &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mitsubishi&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please give me some hints how I can do this inside Talend DI job.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am willing to write some Java if it helps me to solve this problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2017 06:25:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-02T06:25:05Z</dc:date>
    <item>
      <title>JSON field extraction - simple array and key-value-pairs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363915#M127723</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have two JSON questions.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Consider below input JSON &lt;STRONG&gt;fragment&lt;/STRONG&gt; coming from JSON Input File:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;"source":{&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;other JSON fields here&lt;/EM&gt;&amp;nbsp;....&lt;BR /&gt;&lt;STRONG&gt;"NetworkIdList":["networkdevice_1","networkdevice_2","networkdevice_3"],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"KeyValuePairs":{"Gearbox":"Automatic","Drive":"FrontWheelDrive","BodyStyle":"SUV","Make":"Mitsubishi"},&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;other JSON fields here&lt;/EM&gt;&amp;nbsp;....&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;The JSON is in BOLD font.&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Q(1) simple array extraction (no sub-fields inside array elements)&lt;BR /&gt;Q(2) Key-Value-Pair extraction&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Output desired: for JSON simple array marked as Q(1)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;NetworkID:&lt;/STRONG&gt;&lt;BR /&gt;networkdevice_1&lt;BR /&gt;networkdevice_2&lt;BR /&gt;networkdevice_3&lt;/P&gt; 
&lt;P&gt;---------------------------------------------&lt;/P&gt; 
&lt;P&gt;Output Desired: for JSON key-value-pair Q(2)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value:&lt;/STRONG&gt;&lt;BR /&gt;Gearbox &amp;nbsp; &amp;nbsp; &amp;nbsp;Automatic&lt;BR /&gt;Drive &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FrontWheelDrive&lt;BR /&gt;BodyStyle &amp;nbsp; SUV&lt;BR /&gt;Make &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mitsubishi&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please give me some hints how I can do this inside Talend DI job.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am willing to write some Java if it helps me to solve this problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 06:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363915#M127723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-02T06:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: JSON field extraction - simple array and key-value-pairs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363916#M127724</link>
      <description>&lt;P&gt;Hi Yuri&lt;/P&gt; 
&lt;P&gt;1.for extracting&amp;nbsp;&lt;SPAN&gt;simple array you can configure the input json as following image and use tnormalize component to split the rows&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;tfileinputjson--&amp;gt;tnormalize--&amp;gt;tlogrow&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.jpg.png" style="width: 749px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvSt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132437i2957D676BEC838C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvSt.png" alt="0683p000009LvSt.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 14:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363916#M127724</guid>
      <dc:creator>jilanisyed</dc:creator>
      <dc:date>2017-08-02T14:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSON field extraction - simple array and key-value-pairs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363917#M127725</link>
      <description>Many thanks, I will try this out.
&lt;BR /&gt;
&lt;BR /&gt;any further guidance re my question (2) key-value-pairs would be most appreciated, I am sure this is a common pattern that occurs in real production applications.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Aug 2017 02:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363917#M127725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T02:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: JSON field extraction - simple array and key-value-pairs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363918#M127726</link>
      <description>tNormalize works for both, thanks!&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Aug 2017 06:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-field-extraction-simple-array-and-key-value-pairs/m-p/2363918#M127726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-03T06:36:40Z</dc:date>
    </item>
  </channel>
</rss>

