Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NaN serialization issue #90

Closed
matthiaskoenig opened this issue May 21, 2022 · 0 comments
Closed

Fix NaN serialization issue #90

matthiaskoenig opened this issue May 21, 2022 · 0 comments
Assignees
Labels
website Issues related to website

Comments

@matthiaskoenig
Copy link
Owner

Serialization of NaN values if failing again.

        if (_one_shot and c_make_encoder is not None
                and self.indent is None):
            _iterencode = c_make_encoder(
                markers, self.default, _encoder, self.indent,
                self.key_separator, self.item_separator, self.sort_keys,
                self.skipkeys, self.allow_nan)
        else:
            _iterencode = _make_iterencode(
                markers, self.default, _encoder, self.indent, floatstr,
                self.key_separator, self.item_separator, self.sort_keys,
                self.skipkeys, _one_shot)
>       return _iterencode(o, 0)
E       ValueError: Out of range float values are not JSON compliant
@matthiaskoenig matthiaskoenig added the website Issues related to website label May 21, 2022
@matthiaskoenig matthiaskoenig self-assigned this May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
website Issues related to website
Projects
None yet
Development

No branches or pull requests

1 participant