<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:57 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-734] JSON.parse() should handle $timestamp correctly</title>
                <link>https://jira.mongodb.org/browse/JAVA-734</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When trying to parse a JSON string containing Mongo Extended JSON like: &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Mongo+Extended+JSON&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Mongo+Extended+JSON&lt;/a&gt;&lt;br/&gt;
The JSON.parse utility function doesn&apos;t know about this type. Underlying problem is in the JSONCallback.java file which has a if else for a lot of extensions but not the $timestamp.&lt;br/&gt;
example:&lt;br/&gt;
JSON.parse((&quot;{ \&quot;$timestamp\&quot; : &lt;/p&gt;
{ \&quot;$t\&quot;: 123, \&quot;$i\&quot;: 456 }
&lt;p&gt; }&quot;))&lt;/p&gt;</description>
                <environment></environment>
        <key id="62005">JAVA-734</key>
            <summary>JSON.parse() should handle $timestamp correctly</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="sjoerd@persuasionapi.com">Sjoerd Mulder</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Jan 2013 15:30:25 +0000</created>
                <updated>Tue, 19 Mar 2013 14:48:28 +0000</updated>
                            <resolved>Tue, 29 Jan 2013 19:26:10 +0000</resolved>
                                    <version>2.10.1</version>
                                    <fixVersion>2.11.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="247626" author="auto" created="Wed, 23 Jan 2013 14:46:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-23T14:45:55Z&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;}
&lt;p&gt;Message: Merge pull request #100 from sjoerdmulder/timestamp_fix&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-734&quot; title=&quot;JSON.parse() should handle $timestamp correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-734&quot;&gt;&lt;del&gt;JAVA-734&lt;/del&gt;&lt;/a&gt; JSON.parse doesn&apos;t handle $timestamp correctly&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/b5b686b93b9749b1e3f3121cb37ce08d71544671&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/b5b686b93b9749b1e3f3121cb37ce08d71544671&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="247625" author="auto" created="Wed, 23 Jan 2013 14:46:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-23T13:30:36Z&apos;, u&apos;email&apos;: u&apos;sjoerd@frontendless.nl&apos;, u&apos;name&apos;: u&apos;Sjoerd Mulder&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-734&quot; title=&quot;JSON.parse() should handle $timestamp correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-734&quot;&gt;&lt;del&gt;JAVA-734&lt;/del&gt;&lt;/a&gt; JSON.parse doesn&apos;t handle $timestamp correctly&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/5839dc7172e300db74d3438531b20f06d298b910&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/5839dc7172e300db74d3438531b20f06d298b910&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="240697" author="sjoerd@persuasionapi.com" created="Tue, 15 Jan 2013 19:55:34 +0000"  >&lt;p&gt;Actually it should be $timestamp: &lt;/p&gt;
{ t: 123, i: 456 }
&lt;p&gt;. Documentation is correct, looking at the code &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/jsobj.cpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/src/mongo/db/jsobj.cpp&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Updating pull-request&lt;/p&gt;</comment>
                            <comment id="240461" author="sjoerd@persuasionapi.com" created="Tue, 15 Jan 2013 15:31:59 +0000"  >&lt;p&gt;Pull request: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/98&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/98&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrllqv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>39568</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>