BSONObj::toString produces empty object syntax for empty arrays

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.5.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • 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
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: