Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This module automatically generates and injects Schema.org JSON-LD structured data for your Drupal content. Site builders can enable it for specific content types, choose the relevant Schema.org type, and optionally add custom JSON-LD data per node. This helps improve your site's SEO and eligibility for rich search results without needing custom code.

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

Tracked releases
7
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
7 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.7 Stable Jul 23, 2026
1.0.5 Stable Jul 16, 2026
1.0.4 Stable Jul 6, 2026
1.0.3 Stable Jul 6, 2026
1.0.2 Stable Jul 6, 2026
1.0.1 Stable Jul 2, 2026
1.0.0 Stable Jul 2, 2026