Newtonsoft.Json.Bson icon indicating copy to clipboard operation
Newtonsoft.Json.Bson copied to clipboard

Documentation does not mention the new classes BsonDataWriter and BsonDataReader

Open Nikkelmann opened this issue 7 years ago • 4 comments
trafficstars

The documentation for Bson does not mention the new classes, only that Bson has moved to a new package.

Issue 1277 over at Newtonsoft.Json helped me in migrating from BsonWriter and BsonReader to the new BsonDataWriter and BsonDataReader.

Nikkelmann avatar May 08 '18 12:05 Nikkelmann

Please update the documentation https://www.newtonsoft.com/json/help/html/SerializeToBson.htm

p10tyr avatar Jan 13 '20 09:01 p10tyr

Documentation is still not updated..

DaveShopCtrl avatar Jul 07 '20 12:07 DaveShopCtrl

Yes, please, update the documentation! Or, update the Obsolete message to specify we should use the BsonDataReader/BsonDataWriter equivalents.

I spent about an hour trying to get rid of these warnings, just to realise it was a documentation issue.

I don't want to sound ungrateful by the way. Awesome packages.

markholst avatar Feb 11 '22 01:02 markholst

Unfortunately, documentation is still not updated in early 2024.

So grateful to learn that the obsolete solution is two parts:

  1. Change to Newtonsoft.Json.Bson package and namespace.
  2. Replace BsonReader with BsonDataReader

majew7 avatar May 22 '24 00:05 majew7