<?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: [resolved] tRESTClient - How to parse the JSON result in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299374#M71724</link>
    <description>Hi, 
&lt;BR /&gt;How to fetch the particuler string handling like below 
&lt;BR /&gt;example&amp;nbsp; 
&lt;BR /&gt;laks:ram,chandran 
&lt;BR /&gt;result: 
&lt;BR /&gt;ram,chandran</description>
    <pubDate>Wed, 15 Jun 2016 08:59:24 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-06-15T08:59:24Z</dc:date>
    <item>
      <title>[resolved] tRESTClient - How to parse the JSON result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299371#M71721</link>
      <description>Hi, 
&lt;BR /&gt;I didn't find any example or tutorial how to handle the JSON response of a tRESTClient POST request. 
&lt;BR /&gt;The encoded JSON comes in the string field in the response and how can I decode and map it so I can use it's values directly for a next step (UPDATE a database row with the fields). 
&lt;BR /&gt;The response contains objects in objects, so for example: 
&lt;BR /&gt; 
&lt;PRE&gt;{&lt;BR /&gt;  "vendor":&lt;BR /&gt;  {&lt;BR /&gt;    "uuid":1234,&lt;BR /&gt;    "externalId":2345,&lt;BR /&gt;    "details":&lt;BR /&gt;    {&lt;BR /&gt;      "currency":"EUR",&lt;BR /&gt;      "quality":1&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;I tried and played around with the tExtractJSONFields but I don't get it. Always outputting 0 rows. (from the tRestClient come 2 in the Response output) 
&lt;BR /&gt;My settings so far: 
&lt;BR /&gt;Scheme: same as tRESTClient (ResponseCode, Body, String) 
&lt;BR /&gt;JSON field: string 
&lt;BR /&gt;Loop XPath Query: "string" (? - what is this?) 
&lt;BR /&gt;Mapping: Get Nodes checked at "string" 
&lt;BR /&gt;And at last an example log entry of the tRestClient: 
&lt;BR /&gt; 
&lt;PRE&gt;ID: 2&lt;BR /&gt;Response-Code: 200&lt;BR /&gt;Encoding: UTF-8&lt;BR /&gt;Content-Type: application/json; charset=utf-8&lt;BR /&gt;Headers: {connection=, Content-Length=, content-type=, Date=, Keep-Alive=, Server=, X-Powered-By=}&lt;BR /&gt;Payload: {"vendor":{"uuid":"1234", ...&lt;/PRE&gt; 
&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Thu, 27 Jun 2013 15:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299371#M71721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-27T15:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRESTClient - How to parse the JSON result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299372#M71722</link>
      <description>Hi 
&lt;BR /&gt;It is the body column or the string column that contains the string json? If body column, it is a Document type, link tRestClient to a tXMLMap to extract the string Json, and then link the output to a tExtractJSONFields to extract the value from the string Json, the job looks like: 
&lt;BR /&gt;tRestClient--main--tXMLMap--main--tExtractJSONFields--tLogRow 
&lt;BR /&gt;If the string column contains the string json, link tRestClient to tExtractJSONFields and extract the value, the job looks like: 
&lt;BR /&gt;tRestClient--main--tExtractJSONFields--tLogRow 
&lt;BR /&gt;please see my screenshots to know about the settings of tExtractJSONFields for extracting the value. 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEJH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131859i0D635E3C54E7040C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEJH.png" alt="0683p000009MEJH.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 28 Jun 2013 05:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299372#M71722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-28T05:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRESTClient - How to parse the JSON result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299373#M71723</link>
      <description>Hi, &lt;BR /&gt;thanks, that helped!</description>
      <pubDate>Mon, 08 Jul 2013 16:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299373#M71723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-08T16:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRESTClient - How to parse the JSON result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299374#M71724</link>
      <description>Hi, 
&lt;BR /&gt;How to fetch the particuler string handling like below 
&lt;BR /&gt;example&amp;nbsp; 
&lt;BR /&gt;laks:ram,chandran 
&lt;BR /&gt;result: 
&lt;BR /&gt;ram,chandran</description>
      <pubDate>Wed, 15 Jun 2016 08:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299374#M71724</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-06-15T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tRESTClient - How to parse the JSON result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299375#M71725</link>
      <description>Hi, 
&lt;BR /&gt;How to fetch the particuler string handling like below 
&lt;BR /&gt;example&amp;nbsp; 
&lt;BR /&gt;data from source cloumn A = laks:ram,chandran 
&lt;BR /&gt;result: 
&lt;BR /&gt;i want to have the values in &amp;nbsp;column A as below ( i tried using&amp;nbsp;out1.A.substring(out1.A.indexOf(":")+1) but A cloumn data getting scattered &amp;nbsp;into two columns ( A =ram , B = chandran) &amp;nbsp;but i want it in A column only like below 
&lt;BR /&gt;A = ram,chandran</description>
      <pubDate>Wed, 15 Jun 2016 10:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTClient-How-to-parse-the-JSON-result/m-p/2299375#M71725</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-06-15T10:46:32Z</dc:date>
    </item>
  </channel>
</rss>

