Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9750

BSONObj::toString produces empty object syntax for empty arrays

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.1
    • None
    • None
    • None
    • ALL

    Description

      Calling toString on a BSONObj representing '

      { x : [] }

      ' returns a string like { x : {} }, which changes the type of X when round tripped.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: