<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40: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>[CSHARP-1570] Serialize Guids properly when using Json.NET</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1570</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Json.NET has a bug that results in Guids being written with the wrong byte order.&lt;/p&gt;

&lt;p&gt;Write a GuidConverter to work around this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="265075">CSHARP-1570</key>
            <summary>Serialize Guids properly when using Json.NET</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Feb 2016 14:51:09 +0000</created>
                <updated>Fri, 19 Feb 2016 15:03:42 +0000</updated>
                            <resolved>Fri, 19 Feb 2016 15:03:05 +0000</resolved>
                                                                    <component>Json.NET</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1178853" author="rstam" created="Fri, 19 Feb 2016 15:02:56 +0000"  >&lt;p&gt;Added a section on using Guids to the documentation for the Json.NET Integration.&lt;/p&gt;</comment>
                            <comment id="1176360" author="rstam" created="Wed, 17 Feb 2016 20:51:23 +0000"  >&lt;p&gt;While working on this two things were discovered:&lt;/p&gt;

&lt;p&gt;1. It is actually impossible to write a JsonConverter for Guids because the JsonWriter API has no overloads that allow the caller to specify the binary subtype (not surprising since binary subtype is a BSON-specific concept)&lt;/p&gt;

&lt;p&gt;2. The current implementation of BsonWriterAdapter is already handling Guids correctly. It respects the GuidRepresentation configured in the IBsonWriter that it is wrapping.&lt;/p&gt;

&lt;p&gt;So as long as Json.NET is being used via a JsonSerializerAdapter the Guids will be serialized and deserialized correctly. But if using pure Json.NET they won&apos;t be.&lt;/p&gt;

&lt;p&gt;I&apos;ve opened a ticket in Json.NET:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/JamesNK/Newtonsoft.Json/issues/816&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/JamesNK/Newtonsoft.Json/issues/816&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|hrev3j:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="920">C# Sprint 32</customfieldvalue>

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