<?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: Issue with tWriteJSONField output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308742#M80036</link>
    <description>Hi,
&lt;BR /&gt;@jlolling - thanks for getting back to me, i was beginning to fear that might be the case.
&lt;BR /&gt;I'm afraid i'm still relatively new to Talend and am no java developer. Is the above approach going to be viable for me given my limited experience?
&lt;BR /&gt;Many thanks!</description>
    <pubDate>Mon, 09 May 2016 09:06:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-09T09:06:47Z</dc:date>
    <item>
      <title>Issue with tWriteJSONField output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308740#M80034</link>
      <description>&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, 'Helvetica Neue', Helvetica, sans-serif"&gt;I'm struggling with the tWriteJSONField component in Talend and I am hoping someone might be able to help me. I'm pushing data through the component into a tRESTClient object and the API has very specific requirements.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, 'Helvetica Neue', Helvetica, sans-serif"&gt;Using the tWriteJSONField I can extract the data required into the following format:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;PRE&gt; &amp;nbsp;{&lt;BR /&gt; &amp;nbsp; &amp;nbsp;"client":{&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"firstName":"Bobby",&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"lastName":"Char",&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"homephone":[],&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"mobilephone1":[],&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"mobilephone2":[],&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"email":"example@test.com"&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;},&lt;BR /&gt; &amp;nbsp; &amp;nbsp;"addresses":&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"line1":[],&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"city":[],&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"postcode":[]&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt; &amp;nbsp; &amp;nbsp;}&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, 'Helvetica Neue', Helvetica, sans-serif"&gt;But, what i actually need is the format like this (tested successfully in Postman):&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;{&lt;BR /&gt; &amp;nbsp; &amp;nbsp;"client":{&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "firstName":"Bobby",&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "lastName":"Char",&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "homephone":"",&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "mobilephone1":"",&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "mobilephone2":"",&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "email":"example@test.com"&lt;BR /&gt; &amp;nbsp; &amp;nbsp; },&lt;BR /&gt; "addresses":&lt;BR /&gt; }&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;FONT color="#242729"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Arial, 'Helvetica Neue', Helvetica, sans-serif"&gt;Note how the NULL entries are string and not arrays, the second set of entries (addresses) are enclosed as an array (even if there will commonly only be one entry). I've been searching for days for a solution and it appears a common issue, but i am yet to find a solution. Can anyone help please?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 06 May 2016 11:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308740#M80034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-06T11:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with tWriteJSONField output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308741#M80035</link>
      <description>I had similar problems and give up. Now I use the Jackson API and build the JSON documents with pure Java in a tJavaFlex.&lt;BR /&gt;I suggest you load the latest Jackson API jar with tLibraryLoad and build your own documents. the API is very easy.</description>
      <pubDate>Fri, 06 May 2016 18:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308741#M80035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-06T18:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with tWriteJSONField output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308742#M80036</link>
      <description>Hi,
&lt;BR /&gt;@jlolling - thanks for getting back to me, i was beginning to fear that might be the case.
&lt;BR /&gt;I'm afraid i'm still relatively new to Talend and am no java developer. Is the above approach going to be viable for me given my limited experience?
&lt;BR /&gt;Many thanks!</description>
      <pubDate>Mon, 09 May 2016 09:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308742#M80036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-09T09:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with tWriteJSONField output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308743#M80037</link>
      <description>I fear in this case you have not so friendly choices:&lt;BR /&gt;You can use the Talend Data Mapper - a highly complex tool which lets you transform various formats into others. Complex because it depends on a veritable training.&lt;BR /&gt;Using Talend as none-Java developer can sometimes be a pain!&amp;nbsp;</description>
      <pubDate>Mon, 09 May 2016 09:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-tWriteJSONField-output/m-p/2308743#M80037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-09T09:42:15Z</dc:date>
    </item>
  </channel>
</rss>

