https://issues.dlang.org/show_bug.cgi?id=14727

ag0ae...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0ae...@gmail.com
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #1 from ag0ae...@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?

--

Reply via email to