Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Better Json Response

2 sites Security covered Drupal 10–11
View on drupal.org

This module improves Drupal's JSON response capabilities by simplifying debugging and enhancing JSON:API support. It allows disabling the JSON response cache directly from the admin interface and enables displaying any entity in JSON:API format with the option to include related data.

CacheableJsonResponse is a powerful tool that can easily enhance the performance of your headless site.

However, it has two main drawbacks:

  • Debugging challenges: If you encounter an issue, you need to replace CacheableJsonResponse with JsonResponse or clear the cache after every change, which can be cumbersome.
  • JSON:API format limitation: It doesn’t support displaying entities in the JSON:API format.

This module solves both problems:

  • Simplified debugging: By using the BetterJsonResponse class instead of CacheableJsonResponse, you can disable the JSON response cache directly from the back office with a single checkbox.
  • Enhanced JSON:API support: You can now display any entity in JSON:API format, with the ability to add includes as needed.

Depends on

Dependencies of the latest stable release

  • jsonapi Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Dec 2024
Latest release
1 month ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Jul 12, 2026
1.0.0 Stable 10–11 Dec 7, 2024