Drupal is a registered trademark of Dries Buytaert
drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)!

JSON-LD Generator

The JSON-LD Generator module provides a simple, configuration-driven way to generate and inject Schema.org JSON-LD structured data for Drupal node pages.

Unlike developer-oriented JSON-LD toolkits, this module requires no custom code. Site builders can enable structured data for individual content types, select the appropriate Schema.org `@type`, and optionally provide per-node JSON-LD overrides through the Drupal content editing interface.

The module automatically maps standard node fields to Schema.org properties, injects JSON-LD into the page ``, and helps improve search engine understanding of your content and eligibility for rich search results.

Features

The module makes it easy to add Schema.org structured data to Drupal content without writing custom PHP or implementing JSON-LD plugins.

Features include:

Automatic JSON-LD generation for selected content types.
Per-content-type Schema.org `@type` configuration.
Automatic mapping of standard node fields:

* Title → headline
* Created date → datePublished
* Updated date → dateModified
* Body text → description
* Automatic injection of JSON-LD into the page .
* Optional per-node custom JSON-LD overrides.
* Automatic merging of custom JSON-LD with generated schema.
* Validation of custom JSON before content is saved.
* Automatic creation and management of the shared JSON-LD field.
* Support for common Schema.org types including:

* Article
* BlogPosting
* NewsArticle
* Product
* Event
* FAQPage
* Organization
* Person
* LocalBusiness
* WebPage

Typical use cases include:

* SEO and Google Rich Results.
* Editorial and news websites.
* Blogs.
* Product pages.
* Event listings.
* Business websites.

Post-Installation

After enabling the module:

1. Navigate to Administration → Configuration → Search and metadata → JSON-LD Generator.
2. Enable JSON-LD for the desired content types.
3. Select the appropriate Schema.org `@type` for each enabled content type.
4. Save the configuration.

The module automatically:

* Creates the shared `field_schema_jsonld` field storage (if required).
* Attaches the field to enabled content types.
* Configures the form and view displays.
* Injects JSON-LD into the page `` whenever an enabled node is viewed.

Each enabled content type also receives a Custom JSON-LD field on the node edit form where editors can optionally override or extend the automatically generated schema. Custom JSON-LD is validated before the node is saved to prevent invalid structured data from being published.

Additional Requirements

Required:

* Node (Drupal core)
* Field (Drupal core)

No external libraries or third-party APIs are required.

The following modules complement JSON-LD Generator:

Metatag — for additional meta tag management.
Schema.org Blueprints — for advanced Schema.org field mapping and structured content modelling.

These modules are optional and are not required for JSON-LD Generator to function.

Similar projects

Several Drupal modules provide Schema.org and structured data functionality.

JSON-LD Generator is intended for site builders and content editors. It automatically generates Schema.org JSON-LD from standard node fields, provides per-content-type configuration, and supports optional per-node JSON-LD overrides without requiring custom PHP.

json_ld_schema
https://www.drupal.org/project/json_ld_schema

The json_ld_schema module is a developer-oriented toolkit that generates structured data through plugins and PHP code. It offers complete flexibility for custom implementations but does not provide a configuration interface or automatic field mapping.

Choose JSON-LD Generator if you want a lightweight, configuration-driven solution that can be managed through Drupal's administrative interface. Choose json_ld_schema if you need complete developer control over structured data generation.

Community Documentation

Useful resources:

* JSON-LD Specification — https://json-ld.org/
* Schema.org — https://schema.org/
* Google Rich Results Test — https://search.google.com/test/rich-results
* Drupal Documentation — https://www.drupal.org/docs

For detailed installation instructions, configuration examples, troubleshooting information, and FAQs, refer to the module's README.

Activity

Total releases
1
First release
Jul 2026
Latest release
10 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Jul 2, 2026