JSON.stringify emits empty document for NumberLong fields

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.3.12
    • Affects Version/s: 3.3.2
    • Component/s: Shell
    • None
    • Minor Change
    • ALL
    • Platforms 18 (08/05/16), Platforms 2016-08-26
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > 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}}
      

            Assignee:
            Adam Chelminski (Inactive)
            Reporter:
            Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: