Skip to content

NaN is serialized to NaN should be "null" #395

Closed
@Schultzer

Description

@Schultzer

Following the JSON spec NaN and +/- infinity should be serialized to "null"

https://stackoverflow.com/questions/1423081/json-left-out-infinity-and-nan-json-status-in-ecmascript

Finite numbers are stringified as if by calling ToString(number). NaN and Infinity regardless of sign are represented as the String null.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions