<?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 tFileOutputJSON on Mac contains escape characters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-on-Mac-contains-escape-characters/m-p/2341684#M109616</link>
    <description>&lt;P&gt;I am using Talend 6.1 for Mac. &amp;nbsp;&lt;BR /&gt;When I am trying to create a simple interaction with a rest service, using the tRest component, and then output that to a tFileOutputJSON object, the file ends up containing the following data:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;{"data":[{"Body":"{\n &amp;nbsp;\"args\": {}, \n &amp;nbsp;\"headers\": {\n &amp;nbsp; &amp;nbsp;\"Accept\": \"text\/html, image\/gif, image\/jpeg, *; q=.2, *\/*; q=.2\", \n &amp;nbsp; &amp;nbsp;\"Host\": \"httpbin.org\", \n &amp;nbsp; &amp;nbsp;\"User-Agent\": \"Java\/1.7.0_79\"\n &amp;nbsp;}, \n &amp;nbsp;\"origin\": \"84.92.55.85\", \n &amp;nbsp;\"url\": \"http:\/\/httpbin.org\/get\"\n}\n","ERROR_CODE":null}]}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;What I was expecting was this (it looks ok, when I use a tLogRow to display):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;&amp;nbsp; "args": {},&amp;nbsp;&lt;BR /&gt;&amp;nbsp; "headers": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "Accept": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2",&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "Host": "httpbin.org",&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "User-Agent": "Java/1.7.0_79"&lt;BR /&gt;&amp;nbsp; },&amp;nbsp;&lt;BR /&gt;&amp;nbsp; "origin": "84.92.55.85",&amp;nbsp;&lt;BR /&gt;&amp;nbsp; "url": ""&lt;BR /&gt;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Is anyone else had this problem or know how to fix it?&lt;BR /&gt;mARK&lt;/P&gt;</description>
    <pubDate>Sat, 13 Feb 2016 20:55:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-13T20:55:26Z</dc:date>
    <item>
      <title>tFileOutputJSON on Mac contains escape characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-on-Mac-contains-escape-characters/m-p/2341684#M109616</link>
      <description>&lt;P&gt;I am using Talend 6.1 for Mac. &amp;nbsp;&lt;BR /&gt;When I am trying to create a simple interaction with a rest service, using the tRest component, and then output that to a tFileOutputJSON object, the file ends up containing the following data:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;{"data":[{"Body":"{\n &amp;nbsp;\"args\": {}, \n &amp;nbsp;\"headers\": {\n &amp;nbsp; &amp;nbsp;\"Accept\": \"text\/html, image\/gif, image\/jpeg, *; q=.2, *\/*; q=.2\", \n &amp;nbsp; &amp;nbsp;\"Host\": \"httpbin.org\", \n &amp;nbsp; &amp;nbsp;\"User-Agent\": \"Java\/1.7.0_79\"\n &amp;nbsp;}, \n &amp;nbsp;\"origin\": \"84.92.55.85\", \n &amp;nbsp;\"url\": \"http:\/\/httpbin.org\/get\"\n}\n","ERROR_CODE":null}]}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;What I was expecting was this (it looks ok, when I use a tLogRow to display):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;&amp;nbsp; "args": {},&amp;nbsp;&lt;BR /&gt;&amp;nbsp; "headers": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "Accept": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2",&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "Host": "httpbin.org",&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "User-Agent": "Java/1.7.0_79"&lt;BR /&gt;&amp;nbsp; },&amp;nbsp;&lt;BR /&gt;&amp;nbsp; "origin": "84.92.55.85",&amp;nbsp;&lt;BR /&gt;&amp;nbsp; "url": ""&lt;BR /&gt;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Is anyone else had this problem or know how to fix it?&lt;BR /&gt;mARK&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 20:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-on-Mac-contains-escape-characters/m-p/2341684#M109616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-13T20:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputJSON on Mac contains escape characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-on-Mac-contains-escape-characters/m-p/2341685#M109617</link>
      <description>Check if you send the output not as String instead use Document as type and it should work.</description>
      <pubDate>Tue, 16 Feb 2016 23:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-on-Mac-contains-escape-characters/m-p/2341685#M109617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T23:06:48Z</dc:date>
    </item>
  </channel>
</rss>

