chrispc
08/31/2021, 4:18 PMTypeError: Object of type Timestamp is not JSON serializable or TypeError: Object of type date is not JSON serializable
. I know that json.dump() has the parameter default (default
is a function applied to objects that aren't serializable.
In this case it's str
, so it just converts everything it doesn't know to strings) but I can't use it. If I use json.dump before I got the data in the assets catalog uglyYassine Marzougui
08/31/2021, 5:47 PMimport orjson
from dagster import seven
seven.json.dumps = lambda data:orjson.dumps(data, option=orjson.OPT_SORT_KEYS).decode("utf-8", "replace")
chrispc
08/31/2021, 6:14 PMchrispc
08/31/2021, 6:20 PMYassine Marzougui
08/31/2021, 6:20 PM