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

tojson should print the elements when passed a Set object

    XMLWordPrintable

Details

    • 2

    Description

      In the shell, doing:

      tojson(new Set([1,2,3]))
      

      Just prints out a misleading "{ }". tojson should either explicitly throw an error or print out the elements.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
              kevin.albertson@mongodb.com Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: