<?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: Json replace in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292182#M65289</link>
    <description>&lt;P&gt;Hi Deepthi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can add screen grabs directly into your posts using the "Photos" button, which makes things easier for anyone reading them.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Whilst depending on the data&amp;nbsp;and structure of your JSON file, it may be possible to&amp;nbsp;directly remove sections like this using raw file input/output components and Regular Expressions within a tReplace, this certainly isn't recommended or reliable, and by far the best way to do&amp;nbsp;what you're asking is by using the JSON file input and output components, and then manipulating the data properly within the job, as per my reply to your "JSON Manipulation"&amp;nbsp;question:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCptXCAS#M11138" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/JSON-Maniplation/m-p/39594#M11138&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 10:06:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-12T10:06:09Z</dc:date>
    <item>
      <title>Json replace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292181#M65288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have my json response as show in pic&lt;/P&gt;
&lt;P&gt;i want to remove the Selected part and how can it be removed using talend.&lt;/P&gt;
&lt;P&gt;Please do respond as early as possible&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Deepthi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 09:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292181#M65288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T09:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Json replace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292182#M65289</link>
      <description>&lt;P&gt;Hi Deepthi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can add screen grabs directly into your posts using the "Photos" button, which makes things easier for anyone reading them.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Whilst depending on the data&amp;nbsp;and structure of your JSON file, it may be possible to&amp;nbsp;directly remove sections like this using raw file input/output components and Regular Expressions within a tReplace, this certainly isn't recommended or reliable, and by far the best way to do&amp;nbsp;what you're asking is by using the JSON file input and output components, and then manipulating the data properly within the job, as per my reply to your "JSON Manipulation"&amp;nbsp;question:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCptXCAS#M11138" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/JSON-Maniplation/m-p/39594#M11138&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 10:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292182#M65289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T10:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Json replace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292183#M65290</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LMPMAA4"&gt;@ciw1973&lt;/A&gt; wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi Deepthi,&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;You can add screen grabs directly into your posts using the "Photos" button, which makes things easier for anyone reading them.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Whilst depending on the data&amp;nbsp;and structure of your JSON file, it may be possible to&amp;nbsp;directly remove sections like this using raw file input/output components and Regular Expressions within a tReplace, this certainly isn't recommended or reliable, and by far the best way to do&amp;nbsp;what you're asking is by using the JSON file input and output components, and then manipulating the data properly within the job, as per my reply to your "JSON Manipulation"&amp;nbsp;question:&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCptXCAS#M11138" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/JSON-Maniplation/m-p/39594#M11138&lt;/A&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Regards,&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Chris&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;BR /&gt;these part from attached file&lt;/P&gt; 
&lt;P&gt;how can we implement using talend&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Deepthi&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 11:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292183#M65290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Json replace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292184#M65291</link>
      <description>&lt;P&gt;Hi Deepthi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Firstly, you absolutely should&amp;nbsp;not be posting anything to a public forum which includes actual data, as it appears the file you have attached to your post does.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Secondly, I really would encourage you to learn how the tFileInputJSON and tFileOutputJSON components work, as you will then be able to do everything you require in the correct way.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have suggest two approaches which will enable you to do this, but it seems you're not asking for help,&amp;nbsp;and are instead asking the community to do your work for you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There are plenty of paid consultants who I'm sure would be more than happy to implement this for you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 11:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292184#M65291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T11:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Json replace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292185#M65292</link>
      <description>&lt;P&gt;OK, I&amp;nbsp;had ten minutes to spare whilst waiting for something to run, so&amp;nbsp;have put together a&amp;nbsp;quick example of how this can be done FOR YOUR SPECIFIC FILE ONLY using the simple replace approach. This is unlikely to be useful for anything more complicated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Read in the file using a tFileInputRaw, with the Mode set to "Read the file as a string", which should be the default:&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="tFileInputRaw.png" style="width: 696px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrNI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154099i97D223FB18AC1F03/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrNI.png" alt="0683p000009LrNI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This will give you the content as an Object, but you'll want a string, so use a tConvertType with the schema set as follows:&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="tConvertType_Schema.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr4S.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135531iFAC599316F276785/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr4S.png" alt="0683p000009Lr4S.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And just tick "Auto Cast" on the component:&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="tConvertType.png" style="width: 519px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrNN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132018iDF3F111C216D0A7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrNN.png" alt="0683p000009LrNN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Next is the tReplace, which we use in "Advanced mode" to allow matching using a Regular Expression, and we replace whatever's matched with an empty string to remove it:&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="tReplace2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrAv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154428i86549198CC0DD201/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrAv.png" alt="0683p000009LrAv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The Regular Expression is:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "transactionDetail":\{.*?\},&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;But in the component we need to wrap this in double quotes, and escape (add a&amp;nbsp;backslash before) the existing double quotes and slashes in the Regular Expression, which gives us:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; \"transactionDetail\":\\{.*?\\},&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;This will match a section of the string which begins with&amp;nbsp; &lt;FONT face="courier new,courier"&gt;"transactionDetail":{&lt;/FONT&gt;&amp;nbsp; and ends at the next closing curly brace&amp;nbsp; &lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&amp;nbsp; it finds followed by a comma. This completely matches the section of the JSON string you wish to remove.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Then it's simply a case of outputting the string to a file using tFileOutputRaw:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFileOutputRaw.png" style="width: 540px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrNT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153971i00C19D547DCC4937/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrNT.png" alt="0683p000009LrNT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292185#M65292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-12T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Json replace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292186#M65293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your result&lt;/P&gt; 
&lt;P&gt;I have achieved the same in different approch&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJson.PNG" style="width: 591px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrGh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150513iC4A46CF13DFE68B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrGh.png" alt="0683p000009LrGh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I have given you a dummy file,the purpose i have kept the file &amp;nbsp;is to make your understanding better&lt;/P&gt; 
&lt;P&gt;My intension is not to design a job,ok The approch you have given before is not clearly so i have reposted my question&lt;/P&gt; 
&lt;P&gt;If you are not patient enough to explain you cant be a good guide,Agreed you have better knowledge than me but please so remember you cant comment to your wish in a public forum.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Once again thanks a lo for your response&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 05:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292186#M65293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T05:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Json replace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292187#M65294</link>
      <description>&lt;P&gt;Deepthi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You asked how to do&amp;nbsp;something in Talend, and I suggested two approaches - one a robust, reliable way which would require some effort on your part to learn two new, and in fairness, quite complex components; and another, which whilst hardly ideal, was a quick way to achieve your specific goal using simple components which&amp;nbsp;I thought you would likely already know. These were certainly not the only approaches, but both would have worked.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Your response was, in effect, "I'm ignoring your suggestions, here's my file, how do I do it?"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you were looking for help,&amp;nbsp;rather than a completed solution (and your post before you removed the attachment and some of the text, suggested that you were having problems) you could have asked for further details regarding either of my suggestions&amp;nbsp;or help with the components involved, which I'd have been more than happy to provide, as I'm sure would other forum members, but you didn't.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Maybe it's just down to you choice of language, but to me you came across as&amp;nbsp;rather rude&amp;nbsp;(although your edited post after I'd already replied was less so) and as though you couldn't be bothered making an effort. There is no teaching a student who doesn't want to learn.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In all honesty, the quick solution I provided was not for your benefit, but for anyone finding this thread in future.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Whilst I have concerns about the approach you've taken, if it works, then I'm glad you found a solution to your problem.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 10:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Json-replace/m-p/2292187#M65294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-13T10:05:54Z</dc:date>
    </item>
  </channel>
</rss>

