You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("Can only serialise str, int, float, and list.")
returndump_json(value)
We validate the types here to make sure we can serialise it.
The list of types is fairly limited - it excludes Decimal, date, and datetime, because Python's json.dumps is pretty restrictive. We might be able to extend json.dumps to handle these additional types.
Note - if orjson is installed, this is less of a problem, as it serialises far more types.
Date / Time / Timestamp / Timestamptz is supported in SQLite since Piccolo v.1.7.0. Decimal (Numeric) remains unresolved, but I made a small PR that fixes it.
Activity
sinisaos commentedon Feb 4, 2026
Date/Time/Timestamp/Timestamptzis supported in SQLite since Piccolo v.1.7.0.Decimal(Numeric) remains unresolved, but I made a small PR that fixes it.