<!-- 
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-733] JSON.parse() should handle $binary object correctly</title>
                <link>https://jira.mongodb.org/browse/JAVA-733</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;/p&gt;

&lt;p&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 $binary.&lt;/p&gt;

&lt;p&gt;example:&lt;br/&gt;
JSON.parse((&quot;&lt;/p&gt;
{ \&quot;$binary\&quot; : \&quot;YWJjZA==\&quot;, \&quot;$type\&quot; : 0 }
&lt;p&gt;&quot;))&lt;/p&gt;</description>
                <environment></environment>
        <key id="61991">JAVA-733</key>
            <summary>JSON.parse() should handle $binary object 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 09:56:54 +0000</created>
                <updated>Tue, 19 Mar 2013 14:48:30 +0000</updated>
                            <resolved>Tue, 29 Jan 2013 19:24:06 +0000</resolved>
                                    <version>2.10.1</version>
                                    <fixVersion>2.11.0</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="247536" author="auto" created="Wed, 23 Jan 2013 13:08:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-23T13:08:16Z&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: Merge pull request #97 from sjoerdmulder/binary_fix&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-733&quot; title=&quot;JSON.parse() should handle $binary object correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-733&quot;&gt;&lt;del&gt;JAVA-733&lt;/del&gt;&lt;/a&gt; JSON.parse doesn&apos;t handle $binary object correctly&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/d742754affcc229e69eb7adc91d90686e8c2a9a2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/d742754affcc229e69eb7adc91d90686e8c2a9a2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="247535" author="auto" created="Wed, 23 Jan 2013 13:08:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-15T09:57:37Z&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-733&quot; title=&quot;JSON.parse() should handle $binary object correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-733&quot;&gt;&lt;del&gt;JAVA-733&lt;/del&gt;&lt;/a&gt; JSON.parse doesn&apos;t handle $binary object correctly&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/645326228a5cb97f62b8f8cd16146a3a1970261b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/645326228a5cb97f62b8f8cd16146a3a1970261b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="240464" author="sjoerd@persuasionapi.com" created="Tue, 15 Jan 2013 15:32:58 +0000"  >&lt;p&gt;Okay, reverted the checkin from the pull request and added #98 and &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;. As far as i can see no big impact on backward compat&lt;/p&gt;</comment>
                            <comment id="240447" author="jeff.yemin" created="Tue, 15 Jan 2013 15:20:56 +0000"  >&lt;p&gt;Let&apos;s do a new issue/pull for $timestamp.  Might wait for 3.0 to fix that one.&lt;/p&gt;</comment>
                            <comment id="240440" author="sjoerd@persuasionapi.com" created="Tue, 15 Jan 2013 15:14:26 +0000"  >&lt;p&gt;Also found that the $timestamp was still parsed using the &quot;legacy&quot; format. Also added the new format as specified (incorrectly? should be $i and $t objects) on the Mongo Extended JSON page.&lt;/p&gt;</comment>
                            <comment id="240283" author="sjoerd@persuasionapi.com" created="Tue, 15 Jan 2013 11:54:57 +0000"  >&lt;p&gt;pull request: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/97&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/97&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hrllnj:</customfieldvalue>

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