Extended JSON $numberDouble uses incorrect value for NaN

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.3.0
    • Component/s: JSON & ExtJSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Given the following input:

      {"":{"$numberDouble":"NaN"}}
      

      The driver converts this to Go's NaN value, which includes a payload:

      0f0000000100010000000000f87f00
      

      Per the BSON corpus, it should not include a payload, and the output should have been this:

      0f0000000100000000000000f87f00
      

            Assignee:
            Unassigned
            Reporter:
            David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: