[GODRIVER-1515] Extended JSON $numberDouble uses incorrect value for NaN Created: 03/Mar/20  Updated: 30/Mar/22

Status: Backlog
Project: Go Driver
Component/s: JSON & ExtJSON
Affects Version/s: 1.3.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Improve JSON & ExtJSON Implementation

 Description   

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


Generated at Thu Feb 08 08:36:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.