Newtonsoft.Json.Bson
Newtonsoft.Json.Bson copied to clipboard
Documentation does not mention the new classes BsonDataWriter and BsonDataReader
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.
Please update the documentation https://www.newtonsoft.com/json/help/html/SerializeToBson.htm
Documentation is still not updated..
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.
Unfortunately, documentation is still not updated in early 2024.
So grateful to learn that the obsolete solution is two parts:
- Change to
Newtonsoft.Json.Bsonpackage and namespace. - Replace
BsonReaderwithBsonDataReader