Skip to content

Native Dynamic JSON Support in Python's sqlite3 #149472

@DaFi-1

Description

@DaFi-1

Description

Add a standardized way for the sqlite3 module in Python to store and retrieve dict and list objects directly as JSON in SQLite, without requiring manual use of json.dumps() and json.loads().

Idea

  • Insert dict/list → automatically stored as JSON
  • Read JSON column → automatically returned as dict/list
  • Basic JSON query support (if JSON1 extension is available)

Is it viable?

Yes.

Will it break current architecture?

No, if implemented as an optional adapter/converter.

Reality

Unlikely to be added to the core because sqlite3 is intentionally minimal.
More likely to exist as an external extension or library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions