<?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 JSONpath not resolving for child elements in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSONpath-not-resolving-for-child-elements/m-p/2235836#M24756</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So I had a similar job working, but replaced the tRest component with the tRestClient component there now. The structure of the JSON response I get back also changed. &amp;nbsp;The Payload actually has a payload section, which is what I really want to get to, but for the sake of trying to solve the immediate problem, I focused on trying to get access to the first layer of the message. "$.payload.results.maxshTimestamp" is the query that worked in the previous setup, with the tRest component and slightly different response message. I attempt to print out the contents of the 4 variables those queries are ties to in the third picture. The first three are null but the 4th (root) is printed out fine. I've tried various JSONpath syntaxes but anything other than $/@ is printed out as null.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there something I've misconfigured/misunderstood? Or is what I'm attempting not possible, or is there a preferred way to achieve a similar result?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tRESTClient passes response to tExtractJSONFields, the tJave at the end just logs info with System.out.println" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZza.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128903iE14407022044CEC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZza.png" alt="0683p000009MZza.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tRESTClient passes response to tExtractJSONFields, the tJave at the end just logs info with System.out.println&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-05-03 at 21.44.43.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZh4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150892i6BEC72155E53FD52/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZh4.png" alt="0683p000009MZh4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The three null's map to the non $ Jsonpath queries" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZzf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145001iFB448230E8BA5F3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZzf.png" alt="0683p000009MZzf.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The three null's map to the non $ Jsonpath queries&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 03 May 2020 22:02:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-03T22:02:19Z</dc:date>
    <item>
      <title>JSONpath not resolving for child elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSONpath-not-resolving-for-child-elements/m-p/2235836#M24756</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So I had a similar job working, but replaced the tRest component with the tRestClient component there now. The structure of the JSON response I get back also changed. &amp;nbsp;The Payload actually has a payload section, which is what I really want to get to, but for the sake of trying to solve the immediate problem, I focused on trying to get access to the first layer of the message. "$.payload.results.maxshTimestamp" is the query that worked in the previous setup, with the tRest component and slightly different response message. I attempt to print out the contents of the 4 variables those queries are ties to in the third picture. The first three are null but the 4th (root) is printed out fine. I've tried various JSONpath syntaxes but anything other than $/@ is printed out as null.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there something I've misconfigured/misunderstood? Or is what I'm attempting not possible, or is there a preferred way to achieve a similar result?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tRESTClient passes response to tExtractJSONFields, the tJave at the end just logs info with System.out.println" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZza.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128903iE14407022044CEC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZza.png" alt="0683p000009MZza.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tRESTClient passes response to tExtractJSONFields, the tJave at the end just logs info with System.out.println&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-05-03 at 21.44.43.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZh4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150892i6BEC72155E53FD52/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZh4.png" alt="0683p000009MZh4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The three null's map to the non $ Jsonpath queries" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZzf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145001iFB448230E8BA5F3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZzf.png" alt="0683p000009MZzf.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The three null's map to the non $ Jsonpath queries&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 22:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSONpath-not-resolving-for-child-elements/m-p/2235836#M24756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-03T22:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: JSONpath not resolving for child elements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSONpath-not-resolving-for-child-elements/m-p/2235837#M24757</link>
      <description>&lt;P&gt;Seems the tRestClient was passing on the response as xml even though I had chosen JSON. Changed to tExtractXMLField and using path instead of jsonpath and it worked fine.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 08:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSONpath-not-resolving-for-child-elements/m-p/2235837#M24757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T08:16:03Z</dc:date>
    </item>
  </channel>
</rss>

