cldellow / datasette-parquet

Add DuckDB, Parquet, CSV and JSON lines support to Datasette
Apache License 2.0
47 stars 6 forks source link

can't serialize dates in JSON #8

Closed cldellow closed 1 year ago

cldellow commented 1 year ago

https://dux.fly.dev/parquet/geonames.json?_size=max&_labels=on&_shape=objects fails:

{"ok": false, "error": "Object of type date is not JSON serializable", "status": 500, "title": null}

How to serialize dates? Maybe as an ISO string, so a JS client can do new Date(str)