Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1639

Extended JSON should default to using native number type in non-strict mode

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.0.0
    • Affects Version/s: None
    • Component/s: EJSON
    • Labels:

      From fonger's pull request

      MongoDB node.js driver will store JavaScript Number as Double type by default. So I think parsing in non-strict mode, Double should cast to number. Furthermore, JavaScript numbers are always stored as double precision floating point numbers, following the IEEE 754 standard.

      see this pull request

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: