Skip to content

TypeError: Type is not JSON serializable: numpy.ndarray/recarray #729

@amotl

Description

@amotl

Problem

We probed JSON serialization with crate-python and discovered it does not work well in all situations yet, for example when the data payload includes an array/list, and is read from JSON using pandas or Polars.

{"foo":"bar","baz":["qux"]}

The reason is that the decoded payload includes numpy.ndarray or recarray types.

Reproduce

cratedb-orjson.py can be used to reproduce the problem.

References

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