<?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: Backslashes being inserted from tExtractJSONFields component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342148#M110039</link>
    <description>&lt;P&gt;just found this post...it seems like it has to do with JSONPath escaping the forward slashes.  But I'm not sure how/if there's a good fix for it in Talend.  I'm curious if you see the same result if you set up a quick job with a URL in a JSON document. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.googlecloudcommunity.com/gc/Apigee/Why-does-XML-to-JSON-insert-a-backslash-in-front-of-my-forward/m-p/45872" alt="https://www.googlecloudcommunity.com/gc/Apigee/Why-does-XML-to-JSON-insert-a-backslash-in-front-of-my-forward/m-p/45872" target="_blank"&gt;Solved: Why does XML to JSON insert a backslash in front o... - Google Cloud Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 14:03:35 GMT</pubDate>
    <dc:creator>aaronrums</dc:creator>
    <dc:date>2023-01-13T14:03:35Z</dc:date>
    <item>
      <title>Backslashes being inserted from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342145#M110036</link>
      <description>&lt;P&gt;Hello!   I am reading a JSON document which contains  a "url" field, which has a value of a full url (of course). &lt;/P&gt;&lt;P&gt;When parsing this document with tExtractJSONFields, it is adding a backslash prior to every forward slash.   See below for example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example value : &lt;/P&gt;&lt;P&gt;"&lt;A href="https://blah.domain.com/files/orphan/area/123/16/DocName.doc" target="_blank"&gt;https://blah.domain.com/files/orphan/area/123/16/DocName.doc&lt;/A&gt;",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example output, when parsed with &lt;/P&gt;&lt;P&gt;tExtractJSONFields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"https:\/\/blah.domain.com\/files\/orphan\/area\/123\/16\/DocName.doc"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen similar posts, but with no solid resolution. &lt;/P&gt;&lt;P&gt;I don't want resort to doing a REPLACE(urlColumn, "\/", "/").  &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342145#M110036</guid>
      <dc:creator>aaronrums</dc:creator>
      <dc:date>2024-11-15T22:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Backslashes being inserted from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342146#M110037</link>
      <description>&lt;P&gt;I'm afraid I do not experience this and I use the tExtractJSONFields component a lot. However, I may not be using it like you are using it. Can you show me how you are using this and also show a sample of the JSON that is being parsed? A screenshot of your job, the tExtractJSONFields component and a sample of the JSON should be enough information here.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 11:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342146#M110037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-13T11:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Backslashes being inserted from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342147#M110038</link>
      <description>&lt;P&gt;Sure, thanks for the response.  For what it's worth, I'm using a windows machine, which use backslashes for file paths.&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bHH4qAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145945iC4F9A61B5D14B1BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bHH4qAAG.png" alt="0695b00000bHH4qAAG.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bHH4WAAW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132017i40677ACF3E360AFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bHH4WAAW.png" alt="0695b00000bHH4WAAW.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 13:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342147#M110038</guid>
      <dc:creator>aaronrums</dc:creator>
      <dc:date>2023-01-13T13:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Backslashes being inserted from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342148#M110039</link>
      <description>&lt;P&gt;just found this post...it seems like it has to do with JSONPath escaping the forward slashes.  But I'm not sure how/if there's a good fix for it in Talend.  I'm curious if you see the same result if you set up a quick job with a URL in a JSON document. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.googlecloudcommunity.com/gc/Apigee/Why-does-XML-to-JSON-insert-a-backslash-in-front-of-my-forward/m-p/45872" alt="https://www.googlecloudcommunity.com/gc/Apigee/Why-does-XML-to-JSON-insert-a-backslash-in-front-of-my-forward/m-p/45872" target="_blank"&gt;Solved: Why does XML to JSON insert a backslash in front o... - Google Cloud Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 14:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342148#M110039</guid>
      <dc:creator>aaronrums</dc:creator>
      <dc:date>2023-01-13T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Backslashes being inserted from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342149#M110040</link>
      <description>&lt;P&gt;Hmmmm that is strange. I presume that the JSON is being returned by the tREST and the JSON you have added here is taken from what is returned by the tREST without having been modified? I just took your file and quickly knocked up a job to extract just the URL and got this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://sample.test.com/files/orphan/corpus/abd:efg:document:DOC8D106249881A06C/16/doc1.doc&lt;/P&gt;&lt;P&gt;https://sample.test.com/files/orphan/corpus/abd:efg:document:DOC8D106249881A06C/15/doc2.doc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No further editing. Can you test this? Just use a tFileInputRaw to bring your file data in (the JSON) and then use a tExtractJSONFields to extract the url? I used this as the loop jsonpath query...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"$.data.versions[*]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...and just returned the "url" with this ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"url"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then added a tLogRow afterwards. You should see the same as me. If not, this could be a bug.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 16:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342149#M110040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-13T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Backslashes being inserted from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342150#M110041</link>
      <description>&lt;P&gt;got the answer.  Seems like this is happening only when I use ".url" as the query for that field (note the period).  Using simply "url"  solved the problem!  Incidentally, this also removes the square brackets and quotes surrounding the return values as well (previously I was getting ["value"]).    Thank you!    &lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 19:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2342150#M110041</guid>
      <dc:creator>aaronrums</dc:creator>
      <dc:date>2023-01-13T19:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Backslashes being inserted from tExtractJSONFields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2489326#M141459</link>
      <description>&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;
&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="11f97270-11ae-4c81-9522-4f4e22d8eb03" data-message-model-slug="gpt-4o"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;In &lt;EM&gt;Truck Simulator Ultimate&lt;/EM&gt;, unexpected data changes—like backslashes appearing in JSON fields—can disrupt information flow, just as routing errors affect delivery efficiency. In this case, check component configurations or encoding settings to prevent unwanted characters, much like double-checking route settings in-game to ensure smooth and accurate transport operations. &lt;A href="http://trucksimulatorultimateplay.com/category/blog-posts/" target="_self"&gt;Click Here&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Oct 2024 18:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Backslashes-being-inserted-from-tExtractJSONFields-component/m-p/2489326#M141459</guid>
      <dc:creator>michea</dc:creator>
      <dc:date>2024-10-27T18:46:35Z</dc:date>
    </item>
  </channel>
</rss>

