<?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 tExtractJSONFields question - unable extract JSON field in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-question-unable-extract-JSON-field/m-p/2274905#M51440</link>
    <description>Hey guys - I'm trying to get an authorization token via rest basic authentication. The rest request seems to work okay, but I'm not able to extract the authorization token from the response. Here's what the response looks like:
&lt;BR /&gt;{"access_token":"asdfwerwerasd2342343245wqerssf",
&lt;BR /&gt;"token_type":"bearer",
&lt;BR /&gt;"expires in":"1235"
&lt;BR /&gt;}
&lt;BR /&gt;I'm using the tExtractJSONFields to try and extract the "access_token" parameter. See attached screenshot of what I'm doing
&lt;BR /&gt;
&lt;BR /&gt;Here's how I have the tExtractJSONFields configured:
&lt;BR /&gt;
&lt;BR /&gt;and here's what how the schema is set:
&lt;BR /&gt;
&lt;BR /&gt;Unfortunately, the output of the component is null.
&lt;BR /&gt;Any suggestions would be appreciated.</description>
    <pubDate>Thu, 05 Feb 2015 22:45:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-05T22:45:26Z</dc:date>
    <item>
      <title>tExtractJSONFields question - unable extract JSON field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-question-unable-extract-JSON-field/m-p/2274905#M51440</link>
      <description>Hey guys - I'm trying to get an authorization token via rest basic authentication. The rest request seems to work okay, but I'm not able to extract the authorization token from the response. Here's what the response looks like:
&lt;BR /&gt;{"access_token":"asdfwerwerasd2342343245wqerssf",
&lt;BR /&gt;"token_type":"bearer",
&lt;BR /&gt;"expires in":"1235"
&lt;BR /&gt;}
&lt;BR /&gt;I'm using the tExtractJSONFields to try and extract the "access_token" parameter. See attached screenshot of what I'm doing
&lt;BR /&gt;
&lt;BR /&gt;Here's how I have the tExtractJSONFields configured:
&lt;BR /&gt;
&lt;BR /&gt;and here's what how the schema is set:
&lt;BR /&gt;
&lt;BR /&gt;Unfortunately, the output of the component is null.
&lt;BR /&gt;Any suggestions would be appreciated.</description>
      <pubDate>Thu, 05 Feb 2015 22:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-question-unable-extract-JSON-field/m-p/2274905#M51440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-05T22:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields question - unable extract JSON field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-question-unable-extract-JSON-field/m-p/2274906#M51441</link>
      <description>Hi,
&lt;BR /&gt;We can't see the screenshot on our side. Could you please check it? M
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;ake sure your screenshot is not bigger than 2MB.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, sans-serif"&gt;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 06 Feb 2015 08:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-question-unable-extract-JSON-field/m-p/2274906#M51441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T08:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields question - unable extract JSON field</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-question-unable-extract-JSON-field/m-p/2274907#M51442</link>
      <description>Sabrina, &lt;BR /&gt;Thank you for the response. The preview of the post showed that the screenshots loaded successfully - not sure what happened.&lt;BR /&gt;I decided to try and use a tJava component to parse it myself. I believe the error is (and this is a fundamental misunderstanding of how Talend works on my end) is that, the tRest component sends the request and the rest of the subjob triggers BEFORE the response is received. So, effectively a NULL value is passed to the rest of the subjob. appears. Not sure how to pass the actual response from tREST to the rest of the subjob... Would it be a wait step or something else?&lt;BR /&gt;Better understanding this issue would really help in a lot of ares in using Talend...&lt;BR /&gt;So, here's a very simplified example of what I'm doing.&lt;BR /&gt;tRest sends request. tJava triggers at the same time. if the simple code in tJava_1 is &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(row4.Body);&lt;BR /&gt;NULL is printed. &lt;BR /&gt;I'm sure this is rudimentary stuff - I really appreciate your help.</description>
      <pubDate>Fri, 06 Feb 2015 16:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-question-unable-extract-JSON-field/m-p/2274907#M51442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T16:27:10Z</dc:date>
    </item>
  </channel>
</rss>

