<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:53:10 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>[DOCS-6886] Extended JSON docs do not match BSON spec</title>
                <link>https://jira.mongodb.org/browse/DOCS-6886</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;The &quot;Extended JSON&quot; spec is: &lt;a href=&quot;https://docs.mongodb.org/manual/reference/mongodb-extended-json/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/manual/reference/mongodb-extended-json/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The BSON spec is: &lt;a href=&quot;http://bsonspec.org/spec.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://bsonspec.org/spec.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are differences between the two (which are deficiencies in the Extended JSON spec, not the BSON spec).  Specifically, the following BSON types are not documented at all:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;0x10 &amp;#8212; 32 bit integer, aka NumberInt&lt;/li&gt;
	&lt;li&gt;0x0D &amp;#8212; Javascript code (&lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.2.0/src/mongo/bson/bsontypes.h#L84-L85&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;source says deprecated&lt;/a&gt;, but &lt;a href=&quot;http://bsonspec.org/spec.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;spec says not&lt;/a&gt;)&lt;/li&gt;
	&lt;li&gt;0x0F &amp;#8212; Javascript code w/ scope&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;There are other slight differences, which are less important:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;The &lt;tt&gt;HexData(subtype,hexstr)&lt;/tt&gt;, &lt;tt&gt;UUID(hexstr)&lt;/tt&gt; and &lt;tt&gt;MD5(hexstr)&lt;/tt&gt; variants for shell mode &lt;tt&gt;data_binary&lt;/tt&gt; aren&apos;t mentioned (see the output of &lt;tt&gt;help misc&lt;/tt&gt; in the shell).&lt;/li&gt;
	&lt;li&gt;The following entries do not mention that their corresponding BSON types are deprecated:
	&lt;ol&gt;
		&lt;li&gt;&lt;tt&gt;data_ref&lt;/tt&gt;&lt;/li&gt;
		&lt;li&gt;&lt;tt&gt;data_undefined&lt;/tt&gt;&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
	&lt;li&gt;It is not clear that the &lt;tt&gt;data_ref&lt;/tt&gt; entry corresponds to the &quot;DBPointer&quot; BSON type (0x0C), and that there are alternate shell mode representations for it (specifically, &lt;tt&gt;DBPointer(&quot;&amp;lt;name&amp;gt;&quot;, &amp;lt;objectid&amp;gt;)&lt;/tt&gt;, and as of 3.0 &lt;tt&gt;DBRef(&quot;&amp;lt;name&amp;gt;&quot;, &quot;&amp;lt;ref&amp;gt;&quot;, &quot;&amp;lt;db&amp;gt;&quot;)&lt;/tt&gt;).&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;It might also be a good idea to mention somewhere on the page that the BSON types not specifically referenced on the page are part of JSON, and so have the same representation in shell mode and strict mode (which is the normal JSON representation).  This is obvious for things like numbers and strings, but perhaps less so for &lt;tt&gt;null&lt;/tt&gt; (type 0x0A).&lt;/p&gt;</description>
                <environment></environment>
        <key id="245266">DOCS-6886</key>
            <summary>Extended JSON docs do not match BSON spec</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="kevin.pulo@mongodb.com">Kevin Pulo</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Dec 2015 00:02:57 +0000</created>
                <updated>Mon, 30 Oct 2023 21:37:47 +0000</updated>
                            <resolved>Tue, 1 Nov 2022 11:00:37 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4943540" author="edu.bot" created="Tue, 1 Nov 2022 11:00:34 +0000"  >&lt;p&gt;Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="34803">SERVER-5424</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="32387">MONGOSH-1032</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="101156">SERVER-11957</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 1 Nov 2022 11:00:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 14 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-1769</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 14 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>edu.bot</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>kevin.pulo@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn35z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsnggf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrw7lj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>