Skip to content

NaN as missing value leads to invalid json from zarr/.zmetadata endpoint #303

@matrss

Description

@matrss

I have a dataset that has the missing_value attribute of its data variables set to NaN. This is serialized as {..., "missing_value": NaN, ...}, which is not valid json. Json does not have a NaN value.

This seems to be an issue with the defaults of the python json library: https://stackoverflow.com/questions/6601812/sending-nan-in-json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions