Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Better Json Response

Security covered Under active development 1 sites

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.
Drupal 10–11

Ask your assistant about Better Json Response

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

  • 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
3 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

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