<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:25:00 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>[SERVER-11136] Support json parsing of NumberLong/Int</title>
                <link>https://jira.mongodb.org/browse/SERVER-11136</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description></description>
                <environment></environment>
        <key id="93810">SERVER-11136</key>
            <summary>Support json parsing of NumberLong/Int</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="scotthernandez">Scott Hernandez</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Oct 2013 13:08:19 +0000</created>
                <updated>Mon, 11 Jul 2016 17:39:05 +0000</updated>
                            <resolved>Fri, 11 Oct 2013 13:10:23 +0000</resolved>
                                                    <fixVersion>2.5.3</fixVersion>
                                    <component>Internal Code</component>
                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="465803" author="scotthernandez" created="Wed, 4 Dec 2013 21:28:39 +0000"  >&lt;p&gt;The goal of this work was not to roundtrip values/types, but simply to improve the parser for internal use. You will want to follow &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6812&quot; title=&quot;Extended JSON syntax should support all BSON types&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6812&quot;&gt;&lt;del&gt;SERVER-6812&lt;/del&gt;&lt;/a&gt; for that other discussion.&lt;/p&gt;

&lt;p&gt;However I think there is a bug and this format is TenGen not JS (extended) as is here: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/b7434b66409c8d4515b94d3d7e647cf68b2c46ec/src/mongo/db/jsobj.cpp#L81&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/b7434b66409c8d4515b94d3d7e647cf68b2c46ec/src/mongo/db/jsobj.cpp#L81&lt;/a&gt; &amp;#8211; I will add that note to the other work being done here: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11867&quot; title=&quot;In strict-json mode, represent NumberLongs with strings&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11867&quot;&gt;&lt;del&gt;SERVER-11867&lt;/del&gt;&lt;/a&gt; &lt;/p&gt;
</comment>
                            <comment id="465771" author="antoine" created="Wed, 4 Dec 2013 21:02:06 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=scotthernandez&quot; class=&quot;user-hover&quot; rel=&quot;scotthernandez&quot;&gt;scotthernandez&lt;/a&gt;&lt;br/&gt;
if I understand this ticket, we added a way to serialize numberlong / numberint in JSON so that they are roundtripped properly.&lt;br/&gt;
From commit it seems we are using the shell notation like &quot;NumberLong()&quot; which is not proper JSON.&lt;br/&gt;
Instead we should properly pick a notation that is real JSON and make it part of the JSON extended spec.&lt;br/&gt;
&lt;a href=&quot;http://docs.mongodb.org/manual/reference/mongodb-extended-json/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/mongodb-extended-json/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It seems quite important that our import / export method like mongoimport has the ability to keep a given number type.&lt;br/&gt;
The shell tries to keep the same type if a document gets updated, I believe.&lt;br/&gt;
Current caveats:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the JSON parser as-is may insert a mix of Int, Long and Double depending on the value seen.&lt;/li&gt;
	&lt;li&gt;application could break if it&apos;s expecting a specific type and it&apos;s getting a mix of them.&lt;/li&gt;
	&lt;li&gt;what is displayed in the shell could surprise the user.&lt;/li&gt;
	&lt;li&gt;updates that are supposed to be fast in-place could instead grow document and trigger migration.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="454922" author="auto" created="Tue, 12 Nov 2013 14:32:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11136&quot; title=&quot;Support json parsing of NumberLong/Int&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11136&quot;&gt;&lt;del&gt;SERVER-11136&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11135&quot; title=&quot;BSONObjBuilder.appendNumber(numeric_limits&amp;lt;long long&amp;gt;::min()) results in 0 value&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11135&quot;&gt;&lt;del&gt;SERVER-11135&lt;/del&gt;&lt;/a&gt; support NumberLong() in BSONElement::jsonString() result&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b7434b66409c8d4515b94d3d7e647cf68b2c46ec&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b7434b66409c8d4515b94d3d7e647cf68b2c46ec&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="439513" author="auto" created="Fri, 11 Oct 2013 13:34:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;scotthernandez&apos;, u&apos;name&apos;: u&apos;Scott Hernandez&apos;, u&apos;email&apos;: u&apos;scotthernandez@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11136&quot; title=&quot;Support json parsing of NumberLong/Int&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11136&quot;&gt;&lt;del&gt;SERVER-11136&lt;/del&gt;&lt;/a&gt;: add explicit cast&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cc3c80cb841f35f2ef315d6db0eba9e9c3ddc46c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cc3c80cb841f35f2ef315d6db0eba9e9c3ddc46c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="439502" author="auto" created="Fri, 11 Oct 2013 13:10:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;scotthernandez&apos;, u&apos;name&apos;: u&apos;Scott Hernandez&apos;, u&apos;email&apos;: u&apos;scotthernandez@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11136&quot; title=&quot;Support json parsing of NumberLong/Int&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11136&quot;&gt;&lt;del&gt;SERVER-11136&lt;/del&gt;&lt;/a&gt; - Support json parsing of NumberLong/Int&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b2bda16ef3c0ad75b0ee63bac65842d4de513470&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b2bda16ef3c0ad75b0ee63bac65842d4de513470&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="47773">SERVER-6812</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="93808">SERVER-11135</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="100129">SERVER-11867</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 11 Oct 2013 13:10:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 11 weeks 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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 11 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>antoine</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmcan:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>85882</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsp8x3:</customfieldvalue>

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