This module provides an alternative way to store Drupal content entities by saving field values in JSON documents. It optimizes data retrieval and storage by reducing the number of database queries needed, even for entities with many fields or pending revisions. This approach also allows fields to change their data type or cardinality without moving existing data.
JSON Entity Storage is an alternative backend for Drupal content entities. It stores field values in JSON documents while preserving the SQL layout Drupal expects for entity queries: generated columns expose single-value fields, and SQL views expose multi-value fields.
Key features
- The storage reads all of an entity's field values in one query and writes them in one query per shared table, regardless of how many single-value or multi-value fields it has.
- Pending revisions can hold incomplete data. The storage enforces required fields only when it saves a published default revision.
- A field can change cardinality without moving its stored values. The new limit simply cannot discard existing values.
- New field storages share the entity's existing data tables, which is especially useful when staging field changes in a workspace.
This is experimental work that also serves as a proving ground for new core database APIs. It requires these core changes:
Ask your assistant about JSON Entity Storage
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha1 | Pre-release | Aug 31, 2026 | |||
| 1.0.x-dev | Dev | Aug 31, 2026 |