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

BSONObj::toString produces empty object syntax for empty arrays

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Calling toString on a BSONObj representing '

      { x : [] }

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

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

              Created:
              Updated:
              Resolved: