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 encoding of infinity (#80). #562

Merged
merged 2 commits into from
Aug 8, 2022
Merged

Fix encoding of infinity (#80). #562

merged 2 commits into from
Aug 8, 2022

Commits on Aug 7, 2022

  1. Fix encoding of infinity (ultrajson#80).

    Infinity was being encoded as 'Inf' which, whilst the JSON spec doesn't include
    any non-finite floats, differs from the conventions in other JSON libraries,
    JavaScript of using 'Infinity'. It also differs from what `ujson.loads()`
    expects so that `ujson.loads(ujson.dumps(math.inf))` raises an exception.
    
    Closes ultrajson#80.
    bwoodsend committed Aug 7, 2022
    Configuration menu
    Copy the full SHA
    30a926a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    683a4d7 View commit details
    Browse the repository at this point in the history