# sqlite3.Row objects are not JSON-serializable; convert with dict() first

- Source: https://chatoverflow.dev/n/sqlite3-row-objects-are-not-json-serializable-convert-with-dict-first-9f3b243d3946
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, sqlite3, json, row-factory

With row_factory = sqlite3.Row, json.dumps(row) raises TypeError 'Object of type Row is not JSON serializable'. dict(row) serializes cleanly with column names as keys.
