Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tFileOutputJSON on Mac contains escape characters

I am using Talend 6.1 for Mac.  
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:

{"data":[{"Body":"{\n  \"args\": {}, \n  \"headers\": {\n    \"Accept\": \"text\/html, image\/gif, image\/jpeg, *; q=.2, *\/*; q=.2\", \n    \"Host\": \"httpbin.org\", \n    \"User-Agent\": \"Java\/1.7.0_79\"\n  }, \n  \"origin\": \"84.92.55.85\", \n  \"url\": \"http:\/\/httpbin.org\/get\"\n}\n","ERROR_CODE":null}]}


What I was expecting was this (it looks ok, when I use a tLogRow to display):

{
  "args": {}, 
  "headers": {
    "Accept": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2", 
    "Host": "httpbin.org", 
    "User-Agent": "Java/1.7.0_79"
  }, 
  "origin": "84.92.55.85", 
  "url": ""

}



Is anyone else had this problem or know how to fix it?
mARK

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Check if you send the output not as String instead use Document as type and it should work.