This project allows you to export your configs as a JSON to be accessed by any other application / Framework
How export your config to JSON
$config = [
'customProject' => [
'key1' => 'value1',
'key2' => 'value2',
'key3' => 'value3',
'keyX' => 'valueX',
],
];
\Drupal::service("config_export_json.api")->add($config);JSON
You can access at:
https://yoursite.local/sites/default/files/config/config.json
P.s. If your prefer you can access your JSON at:
https://yoursite.local/api/config.json
Example:

Supporting organizations:
Development and bug fixing
Project information
- Project categories: Decoupled, Developer tools
3 sites report using this module
- Created by renatog on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.9
released 7 September 2023
Works with Drupal: ^8.8 || ^9 || ^10
Install:
Development version: 8.x-1.x-dev updated 18 Mar 2024 at 00:39 UTC








