[CSHARP-1001] Fix certain output formats of JsonWriter Created: 19/Jun/14  Updated: 02/Apr/15  Resolved: 23/Jun/14

Status: Closed
Project: C# Driver
Component/s: BSON
Affects Version/s: 1.9.1
Fix Version/s: 1.9.2

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change

 Description   

JsonWriter output was designed a long time ago and is currently incompatible in a few minor ways with current versions of the server and the shell, as well as with mongoimport.

In particular, the following needs to change:

Strict output mode:
 
BsonMaxKey: { $maxkey : 1 } => { $maxKey : 1 }
BsonMinKey: { $minkey : 1 } => { $minKey : 1 }
BsonTimestamp: { $timestamp : 64-bit-value } => { $timestamp : { t : 32-bit-value, i : 32-bit-value } }
BsonUndefined: undefined => { $undefined : true }
 
Shell output mode:
 
BsonMaxKey: { $maxkey : 1 } => MaxKey
BsonMinKey: { $minkey : 1 } => MinKey
BsonTimestamp: { $timestamp : 64-bit-value } => Timestamp(32-bit-value, 32-bit-value)



 Comments   
Comment by Githook User [ 20/Jun/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-1001: Fix certain output formats of JsonWriter.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/3879d53fe704ff7e01e3ad81ac66123b2e6972fc

Comment by Githook User [ 20/Jun/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-1001: Fix certain output formats of JsonWriter.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/672bd049c6579d66b7d7f214f77853aa29dd9c1a

Generated at Wed Feb 07 21:38:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.