Skip to content

Numpy floats can be serialized but not deserialized #213

Description

@sam-s
import rapidjson as json
json.dumps(np.float64(123))
# -> 'np.float64(123.0)'
json.loads('np.float64(123.0)')
# -> JSONDecodeError: Parse error at offset 1: Invalid value

The stock json seems to handle this fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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