Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8917

JSON.stringify emits empty document for NumberLong fields

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      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:
            Unassigned Unassigned
            Reporter:
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              1 year, 25 weeks, 5 days ago