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

JSON.stringify emits empty document for NumberLong fields

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • Server
    • None

    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

            Unassigned Unassigned
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago