Thanks to visit codestin.com
Credit goes to github.com

Skip to content

json encoder should handle NaN and Infinity #202

@chriddyp

Description

@chriddyp

python's json encoder does this really annoying thing where it uses "extended" JSON, which includes NaN and Infinity. This means that JSON.parse() (javascript) of NaN fails! We should probably just replace with None

reference: http://stackoverflow.com/questions/17503981/is-there-a-way-to-override-pythons-json-handler

cc @theengineear

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions