Description
We currently use a custom format when stringifying either a bson.Reader, a bson.Document, or a bson.Array. Since we merged the extjson package into the bson package in GODRIVER-328, we can use extended JSON directly. Update the bson.Reader.String, bson.Document.String, and bson.Array.String methods to use extended JSON when printing. Ensure the calls to ToExtJSON set canonical to true.
For the bson.Element type use the extended JSON package to print the element out as a single element document.
Move the current implementation of bson.Document.String, bson.Array.String, and bson.Reader.String to a method called "DebugString".