Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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