<?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 trestRequest POST method with JSON parameter and use the parameter to create a query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/trestRequest-POST-method-with-JSON-parameter-and-use-the/m-p/2357919#M123100</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i have a rest service with POST method. For the payload (JSON), I am considering schema as&amp;nbsp; 'body' String type.&lt;/P&gt; 
&lt;P&gt;i need to extract the parameters passed in the payload and create a query and fetch data from database.&lt;/P&gt; 
&lt;P&gt;i am using 'trestRequset' component followed by 'tExtractJsonFields' component.&lt;/P&gt; 
&lt;P&gt;Could you plz help me with configuring the components to extract the Json fields.&lt;/P&gt; 
&lt;P&gt;payload:&lt;/P&gt; 
&lt;P&gt;{"ID":"5","FIRST_NAME":"kumar","LAST_NAME":"rohit"}&lt;/P&gt; 
&lt;P&gt;payload example:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trestrequest.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsZM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155176i03A89A658701FD71/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsZM.png" alt="0683p000009LsZM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 18:27:59 GMT</pubDate>
    <dc:creator>krrohit1256</dc:creator>
    <dc:date>2018-02-13T18:27:59Z</dc:date>
    <item>
      <title>trestRequest POST method with JSON parameter and use the parameter to create a query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trestRequest-POST-method-with-JSON-parameter-and-use-the/m-p/2357919#M123100</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i have a rest service with POST method. For the payload (JSON), I am considering schema as&amp;nbsp; 'body' String type.&lt;/P&gt; 
&lt;P&gt;i need to extract the parameters passed in the payload and create a query and fetch data from database.&lt;/P&gt; 
&lt;P&gt;i am using 'trestRequset' component followed by 'tExtractJsonFields' component.&lt;/P&gt; 
&lt;P&gt;Could you plz help me with configuring the components to extract the Json fields.&lt;/P&gt; 
&lt;P&gt;payload:&lt;/P&gt; 
&lt;P&gt;{"ID":"5","FIRST_NAME":"kumar","LAST_NAME":"rohit"}&lt;/P&gt; 
&lt;P&gt;payload example:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trestrequest.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsZM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155176i03A89A658701FD71/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsZM.png" alt="0683p000009LsZM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 18:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trestRequest-POST-method-with-JSON-parameter-and-use-the/m-p/2357919#M123100</guid>
      <dc:creator>krrohit1256</dc:creator>
      <dc:date>2018-02-13T18:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: trestRequest POST method with JSON parameter and use the parameter to create a query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trestRequest-POST-method-with-JSON-parameter-and-use-the/m-p/2357920#M123101</link>
      <description>&lt;P&gt;Your JSON is pretty simple, this will make it easy using the tExtractJSONFields component.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
"ID":"5",
"FIRST_NAME":"kumar",
"LAST_NAME":"rohit"
}&lt;/PRE&gt;
&lt;P&gt;Make the following changes in your tExtractJSONFields component.....&lt;/P&gt;
&lt;P&gt;1) If you set the "Read By" to "JsonPath"&lt;/P&gt;
&lt;P&gt;2) "JSON field" to "body"&lt;/P&gt;
&lt;P&gt;3) Create a new schema with a column for "ID", "First_Name" and "Last_Name".&lt;/P&gt;
&lt;P&gt;4) In the "Loop jsonpath query" put "$"&lt;/P&gt;
&lt;P&gt;5) In the Mapping table add the following JSONPaths next to the relevant column....&lt;BR /&gt;"ID"&lt;/P&gt;
&lt;P&gt;"First_Name"&lt;BR /&gt;"Last_Name"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 11:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trestRequest-POST-method-with-JSON-parameter-and-use-the/m-p/2357920#M123101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T11:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: trestRequest POST method with JSON parameter and use the parameter to create a query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/trestRequest-POST-method-with-JSON-parameter-and-use-the/m-p/2357921#M123102</link>
      <description>Thanks for details, was helpful.</description>
      <pubDate>Fri, 09 Aug 2019 07:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/trestRequest-POST-method-with-JSON-parameter-and-use-the/m-p/2357921#M123102</guid>
      <dc:creator>Niki1</dc:creator>
      <dc:date>2019-08-09T07:51:02Z</dc:date>
    </item>
  </channel>
</rss>

