<?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 Reading date using textractjsonfield in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307279#M78731</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;I have created tmongoinput to read the collection from the source MongoDb. The collection has a datearray, Inorder to read this array I have used textractJsonfield component. I&amp;nbsp;am reading by&amp;nbsp;JsonPath ,&amp;nbsp; jsonfield i have given as DateArray, and in the loop I have give it as "$.[*]" mapping json query i have given it as "&lt;SPAN&gt;testdate1&lt;/SPAN&gt;". The sample JSON field is shown below. The output that I should get is the date value :&amp;nbsp;&lt;SPAN&gt;2016-04-05T23:00:00.000Z, but I am getting it as&amp;nbsp;{"$date":"2016-04-05T23:00:00.000Z"}. Is there way in textractjsonfield that i can remove the $date value and read the value alone. Can you please help me in this.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"DateArray" : [&lt;BR /&gt;{&lt;BR /&gt;"testdate1" : ISODate("2016-04-05T23:00:00.000Z"),&lt;BR /&gt;"testDate2" : ISODate("2016-04-29T23:00:00.000Z"),&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"testdate1" : ISODate("2016-05-05T23:00:00.000Z"),&lt;BR /&gt;"testdate2" : ISODate("2016-05-30T23:00:00.000Z")&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 09:08:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:08:01Z</dc:date>
    <item>
      <title>Reading date using textractjsonfield</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307279#M78731</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;I have created tmongoinput to read the collection from the source MongoDb. The collection has a datearray, Inorder to read this array I have used textractJsonfield component. I&amp;nbsp;am reading by&amp;nbsp;JsonPath ,&amp;nbsp; jsonfield i have given as DateArray, and in the loop I have give it as "$.[*]" mapping json query i have given it as "&lt;SPAN&gt;testdate1&lt;/SPAN&gt;". The sample JSON field is shown below. The output that I should get is the date value :&amp;nbsp;&lt;SPAN&gt;2016-04-05T23:00:00.000Z, but I am getting it as&amp;nbsp;{"$date":"2016-04-05T23:00:00.000Z"}. Is there way in textractjsonfield that i can remove the $date value and read the value alone. Can you please help me in this.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"DateArray" : [&lt;BR /&gt;{&lt;BR /&gt;"testdate1" : ISODate("2016-04-05T23:00:00.000Z"),&lt;BR /&gt;"testDate2" : ISODate("2016-04-29T23:00:00.000Z"),&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"testdate1" : ISODate("2016-05-05T23:00:00.000Z"),&lt;BR /&gt;"testdate2" : ISODate("2016-05-30T23:00:00.000Z")&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307279#M78731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date using textractjsonfield</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307280#M78732</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LMSeAAO"&gt;@nannan&lt;/A&gt; wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi All,&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;I have created tmongoinput to read the collection from the source MongoDb. The collection has a datearray, Inorder to read this array I have used textractJsonfield component. I&amp;nbsp;am reading by&amp;nbsp;JsonPath ,&amp;nbsp; jsonfield i have given as DateArray, and in the loop I have give it as "$.[*]" mapping json query i have given it as "&lt;SPAN&gt;testdate1&lt;/SPAN&gt;". The sample JSON field is shown below. The output that I should get is the date value :&amp;nbsp;&lt;SPAN&gt;2016-04-05T23:00:00.000Z, but I am getting it as&amp;nbsp;{"$date":"2016-04-05T23:00:00.000Z"}. Is there way in textractjsonfield that i can remove the $date value and read the value alone. Can you please help me in this.&lt;/SPAN&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;"DateArray" : [&lt;BR /&gt;{&lt;BR /&gt;"testdate1" : ISODate("2016-04-05T23:00:00.000Z"),&lt;BR /&gt;"testDate2" : ISODate("2016-04-29T23:00:00.000Z"),&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"testdate1" : ISODate("2016-05-05T23:00:00.000Z"),&lt;BR /&gt;"testdate2" : ISODate("2016-05-30T23:00:00.000Z")&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Would you mind posting your tExtractJsonfield component setting screenshot on forum which will be helpful for us to address your problem?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 08:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307280#M78732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-30T08:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date using textractjsonfield</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307281#M78733</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000004XsaeAAC"&gt;@xdshi&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMSeAAO"&gt;@nannan&lt;/A&gt;&amp;nbsp;did you already find a solution? I have the same problem. This is the part of the JSON (source is MongoDB) and I want to extract amount, date, orderItemId eg.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"cancels" : [
    [ 
        {
            "amount" : 199,
            "date" : ISODate("2018-04-24T11:56:44.045Z"),
            "orderItemId" : "123456789",
            "quantity" : 1,
            "reason" : "no reason",
            "sku" : "ABC-123",
            "user" : "user@email.de"
        }
    ]
]&lt;/PRE&gt; 
&lt;P&gt;And this is the tExtractJSONFields component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example.PNG" style="width: 831px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyXL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143292iFC75C5E1CA01B299/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyXL.png" alt="0683p000009LyXL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I get date in this format&amp;nbsp;{"$date":"2018-04-24T11:56:44.045Z"} and it can not be parsed into a date format (Unparseable date: "{"$date":"2018-04-24T11:56:44.045Z"}").&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help would be appreciated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 10:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307281#M78733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-30T10:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading date using textractjsonfield</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307282#M78734</link>
      <description>&lt;P&gt;I found a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed "date" to "date.$date" and turned the string to a date type with&amp;nbsp;TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",row2.created_at) using a tMap after that.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 10:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-date-using-textractjsonfield/m-p/2307282#M78734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-01T10:18:33Z</dc:date>
    </item>
  </channel>
</rss>

