<?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: Making Django REST API POST/PUSH call - How to automatically create JASON object? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Making-Django-REST-API-POST-PUSH-call-How-to-automatically/m-p/2200191#M2757</link>
    <description>&lt;P&gt;You want some auto-conversion from row -&amp;gt; JSON structure?!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However think on how your POST/PUSH works expect to receive:&lt;/P&gt; 
&lt;PRE&gt;{ "id" : 0 , "name" : "foo" , "age" : 24 }&lt;/PRE&gt; 
&lt;P&gt;Or&lt;/P&gt; 
&lt;PRE&gt;{ "target" : "person" , 
"update" : [
      { "id" : 0 , "name" : "foo" , "age" : 24 },
      { "id" : 35, "name" : "foometwice" , "age" : 65 }
    ]
}&lt;/PRE&gt; 
&lt;P&gt;Or ..... so many different ways&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Auto conversion" is possible with tJSONWriteField ... you can do some automapping isnt there a checkbox ,&amp;nbsp; but you probably need to adjust this output to fit your push/post, but it ends up in an array like the first example. There;s no magic component to do it for you beside writing some Java code and tJavaRow / tJavaFlex ...&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However to read/write dynamic schema in Open Studio... take a closer look on this thread :&amp;nbsp;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kCG7CAM#M9057" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Dynamic-schema-alternative-in-Open-Studio/m-p/35098#M9057&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Keep it clean, sometimes it helps being&amp;nbsp;clear on what you're trying to do!&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 22:24:53 GMT</pubDate>
    <dc:creator>Jesperrekuh</dc:creator>
    <dc:date>2018-09-18T22:24:53Z</dc:date>
    <item>
      <title>Making Django REST API POST/PUSH call - How to automatically create JASON object?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Making-Django-REST-API-POST-PUSH-call-How-to-automatically/m-p/2200190#M2756</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;
 &lt;DIV class="vote"&gt;
  &lt;DIV class="favoritecount"&gt;
   &amp;nbsp;
  &lt;/DIV&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="postcell post-layout--right"&gt;
 &lt;DIV class="post-text"&gt;
  &lt;P&gt;I had few complex ETL jobs which are working fine. However, instead of directly hitting the DB, I wish to utilize REST APIs to do that. I figured that I need to deploy the tWriteJASONField node somewhere but I am not being able to figure out how.&lt;/P&gt;
  &lt;P&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P&gt;I envision something like:&lt;/P&gt;
  &lt;PRE&gt;Existing -&amp;gt; Job --- tMAP --- DB write&lt;/PRE&gt;
  &lt;P&gt;being changed to :&lt;/P&gt;
  &lt;PRE&gt;New      -&amp;gt; Job --- tMAP --- tJASONWrite --- tRESTClient&lt;/PRE&gt;
  &lt;P&gt;Also the tJASONWrite component needs JASON tree structure to be specified. Do I have to create that manually, every time, for every job? I'm assuming there is a way to do that automatically, based on the input row schema.&lt;/P&gt;
  &lt;P&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P&gt;So far, I've got the GET working fine and I could fetch the JASON object but I primarily need the PUSH and POST working.&lt;/P&gt;
  &lt;P&gt;&amp;nbsp;&lt;/P&gt;
  &lt;P&gt;Any thoughts on this would be appreciated.&lt;/P&gt;
 &lt;/DIV&gt;
 &lt;DIV class="post-taglist grid gs4 gsy fd-column"&gt;
  &amp;nbsp;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Sep 2018 14:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Making-Django-REST-API-POST-PUSH-call-How-to-automatically/m-p/2200190#M2756</guid>
      <dc:creator>sushantV</dc:creator>
      <dc:date>2018-09-18T14:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Making Django REST API POST/PUSH call - How to automatically create JASON object?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Making-Django-REST-API-POST-PUSH-call-How-to-automatically/m-p/2200191#M2757</link>
      <description>&lt;P&gt;You want some auto-conversion from row -&amp;gt; JSON structure?!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However think on how your POST/PUSH works expect to receive:&lt;/P&gt; 
&lt;PRE&gt;{ "id" : 0 , "name" : "foo" , "age" : 24 }&lt;/PRE&gt; 
&lt;P&gt;Or&lt;/P&gt; 
&lt;PRE&gt;{ "target" : "person" , 
"update" : [
      { "id" : 0 , "name" : "foo" , "age" : 24 },
      { "id" : 35, "name" : "foometwice" , "age" : 65 }
    ]
}&lt;/PRE&gt; 
&lt;P&gt;Or ..... so many different ways&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Auto conversion" is possible with tJSONWriteField ... you can do some automapping isnt there a checkbox ,&amp;nbsp; but you probably need to adjust this output to fit your push/post, but it ends up in an array like the first example. There;s no magic component to do it for you beside writing some Java code and tJavaRow / tJavaFlex ...&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However to read/write dynamic schema in Open Studio... take a closer look on this thread :&amp;nbsp;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kCG7CAM#M9057" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Dynamic-schema-alternative-in-Open-Studio/m-p/35098#M9057&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Keep it clean, sometimes it helps being&amp;nbsp;clear on what you're trying to do!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 22:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Making-Django-REST-API-POST-PUSH-call-How-to-automatically/m-p/2200191#M2757</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-09-18T22:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Making Django REST API POST/PUSH call - How to automatically create JASON object?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Making-Django-REST-API-POST-PUSH-call-How-to-automatically/m-p/2200192#M2758</link>
      <description>&lt;P&gt;I got derailed due to some other priorities and couldn't focus on this effort.&amp;nbsp;Going to focus on this now.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Making-Django-REST-API-POST-PUSH-call-How-to-automatically/m-p/2200192#M2758</guid>
      <dc:creator>sushantV</dc:creator>
      <dc:date>2018-11-05T15:00:26Z</dc:date>
    </item>
  </channel>
</rss>

