<?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: Unable to extract JSON fields using Json Path Expression Filter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-extract-JSON-fields-using-Json-Path-Expression-Filter/m-p/2356823#M122265</link>
    <description>&lt;P&gt;What fields are you trying to extract?&amp;nbsp; Try the following for s3.object.key&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="d.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtcU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148912i65344A251402DE96/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtcU.png" alt="0683p000009LtcU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;d&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You have "Region" duplicated, you'll need to remove that from the Loop JSONPath Query.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 20:20:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-09T20:20:38Z</dc:date>
    <item>
      <title>Unable to extract JSON fields using Json Path Expression Filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-extract-JSON-fields-using-Json-Path-Expression-Filter/m-p/2356822#M122264</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to extract a JSON filed using the 'tExtractJSONFields' component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The payload is looks like this&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{"Records":[{"eventVersion":"2.0","eventSource":"aws:s3","awsRegion":"eu-west-2","eventTime":"2018-04-09T16:51:33.560Z","eventName":"ObjectCreated:Put","userIdentity":{"principalId":"AWS:AIDAJFTPVIK4V4O4UL3AA"},"requestParameters":{"sourceIPAddress":"81.109.43.51"},"responseElements":{"x-amz-request-id":"3F0D7CB9A0E65E00","x-amz-id-2":"bWCsY6hXSeMme6FPNmqfpNV0q7KO8byKzDFl9Yw6n2drLZcfHDNzVzMGgDrkLLL39bBhFmzu6KY="},"s3":{"s3SchemaVersion":"1.0","configurationId":"pmassieh_s3_file_creation_event","bucket":{"name":"pmassieh.talend.s3.bucket","ownerIdentity":{"principalId":"A1LVUWQKJN95HE"},"arn":"arn:aws:s3:::pmassieh.talend.s3.bucket"},"object":{"key":"walkData10.JSON","size":933,"eTag":"a9f8710f6e89c50d3f981e5421e3ef8b","sequencer":"005ACB9A1587159A23"}}}]}&lt;/PRE&gt; 
&lt;P&gt;I am trying to extract using this expression :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"$.Records[*].s3.object.key"&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extract_json_field.PNG" style="width: 949px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtVe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127802i2AE6802014902B2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtVe.png" alt="0683p000009LtVe.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I run this the resulting output is NULL, so it appears that the Json Query fails to find the data. when I remove the expression, then the whole payload comes through intact without any issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried testing the filter expression against the pyalod using this (&lt;A href="http://www.jsonquerytool.com/#/JSONPath" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.jsonquerytool.com/#/JSONPath&lt;/A&gt;) online tool and when I copy the JSON payload and the filter expression, then I get the desired result, however the talend component fails.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any ideas ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Appreciate your help&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;Patrice&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 18:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-extract-JSON-fields-using-Json-Path-Expression-Filter/m-p/2356822#M122264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T18:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract JSON fields using Json Path Expression Filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-extract-JSON-fields-using-Json-Path-Expression-Filter/m-p/2356823#M122265</link>
      <description>&lt;P&gt;What fields are you trying to extract?&amp;nbsp; Try the following for s3.object.key&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="d.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtcU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148912i65344A251402DE96/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtcU.png" alt="0683p000009LtcU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;d&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You have "Region" duplicated, you'll need to remove that from the Loop JSONPath Query.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-extract-JSON-fields-using-Json-Path-Expression-Filter/m-p/2356823#M122265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T20:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract JSON fields using Json Path Expression Filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-extract-JSON-fields-using-Json-Path-Expression-Filter/m-p/2356824#M122266</link>
      <description>&lt;P&gt;Thanks. That worked. Appreciate your help.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-extract-JSON-fields-using-Json-Path-Expression-Filter/m-p/2356824#M122266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-09T20:29:16Z</dc:date>
    </item>
  </channel>
</rss>

