<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:21:18 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>[DRIVERS-342] add Json result : Simple type mode</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-342</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;i try to respond to the jira &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1280&quot; title=&quot;In JsonWriter, support writing BSON Int64 values as JSON numbers rather than $numberLong&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1280&quot;&gt;&lt;del&gt;JAVA-1280&lt;/del&gt;&lt;/a&gt; in my PR 346 (&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/346&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/346&lt;/a&gt;) because i experiment some bugs when i try to parse my json from Document.toJson() with a jackson project (emfjson-jackson and emfjson-mongo).&lt;/p&gt;

&lt;p&gt;Hope it can help other people ;o)&lt;/p&gt;

&lt;p&gt;As  @rozza said:&lt;br/&gt;
However, if you feel strongly that the MongoDB Drivers really should support this feature, then I urge you to file a ticket to the DRIVERS project. If you explain the rational for new feature and the conversions to and from Bson types, then as a drivers team we can best look at the feature.&lt;/p&gt;

&lt;p&gt;So here is the issue after 9 months on wait without any response....&lt;/p&gt;</description>
                <environment></environment>
        <key id="336263">DRIVERS-342</key>
            <summary>add Json result : Simple type mode</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="3">Duplicate</resolution>
                                        <assignee username="bernie@mongodb.com">Bernie Hackett</assignee>
                                    <reporter username="dufgui">guillaume dufour</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Dec 2016 11:45:44 +0000</created>
                <updated>Mon, 15 Apr 2019 17:27:32 +0000</updated>
                            <resolved>Mon, 4 Dec 2017 20:24:06 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1742063" author="behackett" created="Mon, 4 Dec 2017 20:24:07 +0000"  >&lt;p&gt;I&apos;m closing this as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-351&quot; title=&quot;Implement Extended JSON Spec&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-351&quot;&gt;DRIVERS-351&lt;/a&gt;, which requires the relaxed mode.&lt;/p&gt;</comment>
                            <comment id="1742056" author="jeff.yemin" created="Mon, 4 Dec 2017 20:17:13 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/extended-json.rst#relaxed-extended-json-example&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Relaxed extended JSON&lt;/a&gt; solves the specific issue of serializing BSON Int64 values as JSON numbers instead of using &lt;tt&gt;$numberLong&lt;/tt&gt;.  &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1772&quot; title=&quot;Make it easier to change JsonWriter&#160;behaviour&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1772&quot;&gt;&lt;del&gt;JAVA-1772&lt;/del&gt;&lt;/a&gt; allows for full customization of JSON serialization so that a wide variety of effects can be achieved.&lt;/p&gt;</comment>
                            <comment id="1742029" author="behackett" created="Mon, 4 Dec 2017 20:05:00 +0000"  >&lt;p&gt;With the introduction of the MongoDB Extended JSON spec, is this ticket resolved? &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ross.lawley&quot; class=&quot;user-hover&quot; rel=&quot;ross.lawley&quot;&gt;ross.lawley&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jeff.yemin&quot; class=&quot;user-hover&quot; rel=&quot;jeff.yemin&quot;&gt;jeff.yemin&lt;/a&gt;, does the Java driver implementation of the spec resolve &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1280&quot; title=&quot;In JsonWriter, support writing BSON Int64 values as JSON numbers rather than $numberLong&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1280&quot;&gt;&lt;del&gt;JAVA-1280&lt;/del&gt;&lt;/a&gt;?&lt;/p&gt;</comment>
                            <comment id="1540960" author="rage-shadowman" created="Tue, 4 Apr 2017 23:26:02 +0000"  >&lt;p&gt;Ideally, we wouldn&apos;t need to convert anything to JSON ourselves and could just use jackson in the library to get a &lt;tt&gt;MongoCollection&amp;lt;MyJacksonSerializableObject&amp;gt;&lt;/tt&gt; (whereas right now we are forced to get a &lt;tt&gt;MongoCollection&amp;lt;Document&amp;gt;&lt;/tt&gt; and turn the document into jackson-compatible &amp;#8211; non mongo-extended &amp;#8211; JSON text and use a jackson &lt;tt&gt;ObjectMapper&lt;/tt&gt; to turn that back into a &lt;tt&gt;MyJacksonSerializableObject&lt;/tt&gt;, unless we want to write yet another set of parser/conversion classes for mongo).&lt;/p&gt;</comment>
                            <comment id="1449407" author="dufgui" created="Mon, 5 Dec 2016 17:29:51 +0000"  >&lt;p&gt;The problem is emfjson is base on jackson. &lt;br/&gt;
Json product by mongo java driver contains 2 problem for me:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Date : wich is not understand as i rember by jackson&lt;/li&gt;
	&lt;li&gt;huge number wich is parsed by jsckson but complicated to parse because we send data and one time we have a number, one time we have an object....&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I don&apos;t test a lot for Date because I don&apos;t have the problem. (No date in my data)&lt;br/&gt;
But I have problem on long as you can see here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/emfjson/emfjson-mongo/blob/master/src/test/java/org/emfjson/mongo/tests/MongoHandlerSaveAndLoadTest.java#L62&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/emfjson/emfjson-mongo/blob/master/src/test/java/org/emfjson/mongo/tests/MongoHandlerSaveAndLoadTest.java#L62&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1448943" author="ross@10gen.com" created="Mon, 5 Dec 2016 12:16:15 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dufgui&quot; class=&quot;user-hover&quot; rel=&quot;dufgui&quot;&gt;dufgui&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for adding this ticket, once again I&apos;d like to apologise for the lack of response on your PR, behind the scenes we have been looking at extended json but unfortunately, I neglected to update the issue and let you know.&lt;/p&gt;

&lt;p&gt;Currently, converting a document to extended json does produce valid Json and allows for all Bson types to be round tripped without losing the type information.  I&apos;d like your help in understanding more about the issues or pain it is that causing you when using the extended json?&lt;/p&gt;

&lt;p&gt;From the tests in the PR it seems to only be numerics and dates that are handled differently.  Is that for better interoperability with other Json libraries? Does it matter that the fidelity could be lost when round tripping the numeric data types? &lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1448928" author="dufgui" created="Mon, 5 Dec 2016 11:46:36 +0000"  >&lt;p&gt;Sorry it&apos;s a feature not a bug&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="353164">DRIVERS-351</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10250"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hssinr:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>