<?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: Extracting json date value from mongoDB using tExractJSONfields component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extracting-json-date-value-from-mongoDB-using-tExractJSONfields/m-p/2209429#M8254</link>
    <description>&lt;P&gt;It doesn't look like you have shown us the same JSON. The JSON you have given us does not have a "date" element, but your image shows you using $.date as your JSONPath.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the example you gave, I set the loop to ....&lt;/P&gt;
&lt;PRE&gt;"$.borrowers.[*]"&lt;/PRE&gt;
&lt;P&gt;....then I set the date of birth column to ....&lt;/P&gt;
&lt;PRE&gt;"date_of_birth"&lt;/PRE&gt;
&lt;P&gt;....and I returned....&lt;/P&gt;
&lt;PRE&gt;ISODate("1959-01-17T00:00:00.000Z")&lt;/PRE&gt;
&lt;P&gt;Obviously there will be a requirement to format this appropriately, but it retrieves the correct value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 15:09:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-21T15:09:09Z</dc:date>
    <item>
      <title>Extracting json date value from mongoDB using tExractJSONfields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-json-date-value-from-mongoDB-using-tExractJSONfields/m-p/2209428#M8253</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to extract some attributes out of mongoDB json but im getting wrong values out of it,&lt;/P&gt; 
&lt;P&gt;My date_of_birth values are extracted like this "{"$date":602316000000}" , any help on this will be highly appreciated ?!&lt;/P&gt; 
&lt;P&gt;please find my json below&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"_id": "cb865234b9c0-332-ae9e-23423",&lt;BR /&gt;"purchase_type": "PRE_QUAL",&lt;BR /&gt;"lead_id": ,&lt;BR /&gt;"loan_number": "11111",&lt;BR /&gt;"city": "Fort ",&lt;BR /&gt;"state": "TX",&lt;BR /&gt;"zip_code": "5465",&lt;BR /&gt;"property_type": "Single Family Residence",&lt;BR /&gt;"property_type_a": "Detached",&lt;BR /&gt;"property_type_b": "1 Unit",&lt;BR /&gt;"property_use": "PrimaryResidence",&lt;BR /&gt;"working_with_realtor": false,&lt;BR /&gt;"down_payment_amount": 250000,&lt;BR /&gt;"veteran_details": {&lt;BR /&gt;"borrower_position": "",&lt;BR /&gt;"veteran_branch_of_service": ""&lt;BR /&gt;},&lt;BR /&gt;"estimated_purchase_price": 575000,&lt;BR /&gt;"borrowers": [{&lt;BR /&gt;"customer_id": NumberLong(12345678),&lt;BR /&gt;"borrower_position": 1,&lt;BR /&gt;"first_name": "Russell ",&lt;BR /&gt;"last_name": "Smith",&lt;BR /&gt;"middle_name": "W",&lt;BR /&gt;"address": "5409 El Campo",&lt;BR /&gt;"city": "Fort Worth ",&lt;BR /&gt;"state": "TX",&lt;BR /&gt;"zip_code": "76107",&lt;BR /&gt;"marital_status": "SEPARATED",&lt;BR /&gt;"last4SSN": "XXXX",&lt;BR /&gt;"date_of_birth": ISODate("1959-01-17T00:00:00.000Z"),&lt;BR /&gt;"email": "XXX@gmail.com",&lt;BR /&gt;"phone": "XXXXX",&lt;BR /&gt;"va_status": false,&lt;BR /&gt;"veteran_type_of_service": "NO",&lt;BR /&gt;"employment_status": ["employed"],&lt;BR /&gt;"self_employed": false,&lt;BR /&gt;"bankruptcy": false,&lt;BR /&gt;"foreclosure": false,&lt;BR /&gt;"us_citizen": true,&lt;BR /&gt;"primary_residence_intent": true,&lt;BR /&gt;"income": 12000,&lt;BR /&gt;"income_frequency": "Monthly",&lt;BR /&gt;"income_breakdown": ["base"],&lt;BR /&gt;"income_details": {&lt;BR /&gt;"base": 12000&lt;BR /&gt;}&lt;BR /&gt;}],&lt;BR /&gt;"brand_name": "UWM",&lt;BR /&gt;"shard_key": "cb",&lt;BR /&gt;"created_dttm": "2020-02-10T15:52:37.036+00:00",&lt;BR /&gt;"additionalProperties": {&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-json-date-value-from-mongoDB-using-tExractJSONfields/m-p/2209428#M8253</guid>
      <dc:creator>TamilM</dc:creator>
      <dc:date>2024-11-16T03:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting json date value from mongoDB using tExractJSONfields component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extracting-json-date-value-from-mongoDB-using-tExractJSONfields/m-p/2209429#M8254</link>
      <description>&lt;P&gt;It doesn't look like you have shown us the same JSON. The JSON you have given us does not have a "date" element, but your image shows you using $.date as your JSONPath.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the example you gave, I set the loop to ....&lt;/P&gt;
&lt;PRE&gt;"$.borrowers.[*]"&lt;/PRE&gt;
&lt;P&gt;....then I set the date of birth column to ....&lt;/P&gt;
&lt;PRE&gt;"date_of_birth"&lt;/PRE&gt;
&lt;P&gt;....and I returned....&lt;/P&gt;
&lt;PRE&gt;ISODate("1959-01-17T00:00:00.000Z")&lt;/PRE&gt;
&lt;P&gt;Obviously there will be a requirement to format this appropriately, but it retrieves the correct value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 15:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extracting-json-date-value-from-mongoDB-using-tExractJSONfields/m-p/2209429#M8254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-21T15:09:09Z</dc:date>
    </item>
  </channel>
</rss>

