<?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: tFileOutputJSON inserting new line &amp;quot;\&amp;quot; characters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350683#M117499</link>
    <description>&lt;P&gt;Any advice on this one?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2017 09:04:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-25T09:04:19Z</dc:date>
    <item>
      <title>tFileOutputJSON inserting new line "\" characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350680#M117496</link>
      <description>&lt;P&gt;I am trying to use the tfileoutputjson component but it is inserting new line characters in the file which means I can't use a json path query to extract the fields I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My flow is trestclient ---- tfileoutputjson. The json is formatted as expected&amp;nbsp;when I use tlogrow. Any ideas how I prevent the "\n" being inserted in the output file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 16:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350680#M117496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T16:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputJSON inserting new line "\" characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350681#M117497</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please elaborate your case with an example with input and expected output values?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sabrina&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 09:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350681#M117497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-21T09:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputJSON inserting new line "\" characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350682#M117498</link>
      <description>&lt;P&gt;Yes, sure. I am using the Google Places api and am expecting to receive a response in the following format:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{
    "html_attributions": [],
    "results": [
        {
            "formatted_address": "London, United Kingdom",
            "geometry": {
                "location": {
                    "lat": 0.5153788,
                    "lng": -0.1392263
                },
                "viewport": {
                    "northeast": {
                        "lat": 0.52708884999999,
                        "lng": -0.13778035
                    },
                    "southwest": {
                        "lat": 0.51147545000001,
                        "lng": -0.14356415
                    }
                }
            },
            "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
            "id": "c1942d9a94bad7dd667149b40786f0a0f6bd6769",
            "name": "Company Name",
            "place_id": "Place_id",
            "rating": 5,
            "reference": "example",
            "types": [
                "point_of_interest",
                "establishment"
            ]
        }
    ],
    "status": "OK"
}&lt;/PRE&gt; 
&lt;P&gt;But what I actually get back is in this format&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{"data":[{"string":"{\n   \"html_attributions\" : [],\n   \"results\" : [\n      {\n         \"formatted_address\" : \"London, United Kingdom\",\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 0.5153788,\n               \"lng\" : -0.1392263\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 0.52708884999999,\n                  \"lng\" : -0.13778035\n               },\n               \"southwest\" : {\n                  \"lat\" : 0.51147545000001,\n                  \"lng\" : -0.14356415\n               }\n            }\n         },\n         \"icon\" : \"https:\/\/maps.gstatic.com\/mapfiles\/place_api\/icons\/generic_business-71.png\",\n         \"id\" : \"c1942d9a94bad7dd667149b40786f0a0f6bd6769\",\n         \"name\" : \"DataXu\",\n         \"place_id\" : \"place_id",\n         \"rating\" : 5,\n         \"reference\" : \"CmRRAAAADMfvTkEkMvnLOOa-WXca3olzFgUz9d17pkzsD4bfxkU_-c9lE63nWsGj8YZJLH7p6BMRWyOmKhYWX35pioAN1Q-doaO-caPt-KuVI_wEhtOiSmXACU6ry_WwqCu1X8DVEhDkPbQfutBaWY7K0FHFwajUGhT6wziXwKWKZqGgOZ0D3dJL95bk6g\",\n         \"types\" : [ \"point_of_interest\", \"establishment\" ]\n      }\n   ],\n   \"status\" : \"OK\"\n}\n","body":null,"statusCode":200}]}&lt;/PRE&gt; 
&lt;P&gt;This is my &amp;nbsp;flow.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TalendFlow.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lqom.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153975i722AF8D8044C03F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lqom.png" alt="0683p000009Lqom.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In tFileInputJSON I am trying to retrieve the place_id from the json file using the jsonpath query displayed, but because of the file format it is not working.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TalendFlow02.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lqor.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132375i987479597EB0B342/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lqor.png" alt="0683p000009Lqor.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 10:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350682#M117498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-21T10:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputJSON inserting new line "\" characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350683#M117499</link>
      <description>&lt;P&gt;Any advice on this one?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350683#M117499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-25T09:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputJSON inserting new line "\" characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350684#M117500</link>
      <description>&lt;P&gt;I have the same problem!&lt;/P&gt;&lt;P&gt;It's like the component tries to stringify every fields and every value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help us?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350684#M117500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T11:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputJSON inserting new line "\" characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350685#M117501</link>
      <description>&lt;P&gt;I think your webservice is returning wrong data, as talend json outpout properly works , even it's not indented.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 10:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350685#M117501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-28T10:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputJSON inserting new line "\" characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350686#M117502</link>
      <description>&lt;P&gt;Any answer on this? I have the same issue and it's not the web service as it looks fine in the tLogRow directly before the&amp;nbsp;tFileOutputJSON&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 16:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350686#M117502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-31T16:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutputJSON inserting new line "\" characters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350687#M117503</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000004XsaeAAC"&gt;@xdshi&lt;/A&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;tFileOutputJSON - is adding addition escape character to the data in the file it create. Any specific setting need to be done?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;input :/data/policy&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;output in JSON : \/data\/policy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 23:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutputJSON-inserting-new-line-quot-quot-characters/m-p/2350687#M117503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-22T23:43:25Z</dc:date>
    </item>
  </channel>
</rss>

