You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to be able to handle serialization of non JSON serializable floats (the non-finites: inf, -inf, nan). Preferably, in a manner consistent with the existing mechanisms for serialization of non-JSON types -- the user-supplied default function.
If you think this would be worthwhile, I'm willing to work on a pull request (I submitted a first draft Python-only implementation, let me know if you agree with the direction).
Btw, this issue is tangential to #149, which can be addressed similarly.
The text was updated successfully, but these errors were encountered:
It would be great to be able to handle serialization of non JSON serializable floats (the non-finites:
inf
,-inf
,nan
). Preferably, in a manner consistent with the existing mechanisms for serialization of non-JSON types -- the user-supplieddefault
function.Something like:
If you think this would be worthwhile, I'm willing to work on a pull request (I submitted a first draft Python-only implementation, let me know if you agree with the direction).
Btw, this issue is tangential to #149, which can be addressed similarly.
The text was updated successfully, but these errors were encountered: