prefect.server.utilities.schemas.serializers
orjson_dumps(v, *, default)
Utility for dumping a value to JSON using orjson.
orjson.dumps returns bytes, to match standard json.dumps we need to decode.
Source code in src/prefect/server/utilities/schemas/serializers.py
10 11 12 13 14 15 16 |
|
orjson_dumps_extra_compatible(v, *, default)
Utility for dumping a value to JSON using orjson, but allows for 1) non-string keys: this is helpful for situations like pandas dataframes, which can result in non-string keys 2) numpy types: for serializing numpy arrays
orjson.dumps returns bytes, to match standard json.dumps we need to decode.
Source code in src/prefect/server/utilities/schemas/serializers.py
19 20 21 22 23 24 25 26 27 28 29 30 |
|