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

JSON.stringify emits empty document for NumberLong fields

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.12
    • 3.3.2
    • Shell
    • None
    • Minor Change
    • ALL
    • Platforms 18 (08/05/16), Platforms 2016-08-26

    Description

      > mongo --eval "JSON.stringify({x: NumberLong(3)})"
      MongoDB shell version: 3.3.5
      connecting to: test
      {"x":{}}
      

      This is a regression from 3.2:

      > mongo --eval "JSON.stringify({x: NumberLong(3)})"
      MongoDB shell version: 3.2.6
      connecting to: test
      {"x":{"floatApprox":3}}
      

      Attachments

        Activity

          People

            adam.chelminski@mongodb.com Adam Chelminski (Inactive)
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: