The JSON:API Preview Tab module adds a convenient tab (local task) to entity admin pages, allowing developers to view the JSON:API response for each entity directly from the entity’s admin interface.

This module integrates seamlessly with Drupal’s JSON:API module, providing a quick and easy way to see the structured JSON representation of content, media, taxonomy terms, and menu content items.

API Preview Tab Screenshot

Features

  • Adds a “JSON:API Preview” tab to each entity admin page.
  • Displays the JSON:API response for the entity in a clean, readable format, without the need for syntax highlighting browser extensions.
  • Currently supports node, taxonomy_term, media, and menu_link_content entities.

Use Case

Ideal for developers and site administrators who want to quickly inspect the JSON:API output for entities without needing to manually construct API URLs. This module simplifies the debugging and development process when working with the Drupal core JSON:API in a headless or decoupled setup.

Project information

Releases