Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-424

Use ExtendedJSON when stringifying bson.Reader, bson.Document, and bson.Array types.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 0.0.5
    • BSON

    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".

      Attachments

        Activity

          People

            Unassigned Unassigned
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: