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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: bson-4.0.0
    • Component/s: extended-json
    • Labels:

      Description

      From CF Hsu'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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: