Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
June 23, 2015 [Issue 14727] std.json incorrectly supports inf and nan | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14727 ag0aep6g@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ag0aep6g@gmail.com Hardware|x86_64 |All OS|Linux |All --- Comment #1 from ag0aep6g@gmail.com --- I think this has been fixed recently. Git head phobos throws "std.json.JSONException@std/json.d(1170): Cannot encode Infinity. Consider passing the specialFloatLiterals flag." Corresponding pull request: https://github.com/D-Programming-Language/phobos/pull/3141 The mentioned specialFloatLiterals is not set by default. Setting it makes it so that inf/nan get stringified to JSON strings (not null). Are you ok with this? -- |
June 24, 2015 [Issue 14727] std.json incorrectly supports inf and nan | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14727 --- Comment #2 from Lumi Pakkanen <lumi.pakkanen@gmail.com> --- (In reply to ag0aep6g from comment #1) > I think this has been fixed recently. Git head phobos throws "std.json.JSONException@std/json.d(1170): Cannot encode Infinity. Consider passing the specialFloatLiterals flag." > > Corresponding pull request: https://github.com/D-Programming-Language/phobos/pull/3141 > > The mentioned specialFloatLiterals is not set by default. Setting it makes it so that inf/nan get stringified to JSON strings (not null). Are you ok with this? Those options are nice but I would like to have the third option that works like javascript's JSON.stringify and encodes inf and nan as null. -- |
December 15, 2019 [Issue 14727] std.json incorrectly supports inf and nan | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14727 berni44 <bugzilla@d-ecke.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@d-ecke.de Severity|normal |enhancement -- |
December 17, 2022 [Issue 14727] std.json incorrectly supports inf and nan | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14727 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
December 01 [Issue 14727] std.json incorrectly supports inf and nan | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14727 --- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10133 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation