Skip to content

INF/NaN Value Handling #10

Description

@woaifashao

1.When infnan is not configured, the default yyjson write flag uses YYJSON_WRITE_ALLOW_INF_AND_NAN, and the default yyjson read flag uses YYJSON_READ_ALLOW_INF_AND_NAN. This prevents serialization crashes if the user hasn't configured infnan.
2. When the user sets infnan to true, the yyjson write flag uses YYJSON_WRITE_INF_AND_NAN_AS_NULL, while the yyjson read flag still uses YYJSON_READ_ALLOW_INF_AND_NAN. This ensures compatibility for cross-language upstream and downstream communication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions