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

Releases