<?php
use Cake\Routing\Router;

Router::plugin('FrontendBridge', function ($routes) {
	Router::connect('/json_action/:plugin/:controller/:action/*', array('jsonAction' => true));
	Router::connect('/json_action/:controller/:action/*', array('jsonAction' => true));
	$routes->fallbacks('InflectedRoute');
});

<?php
use Cake\Routing\Router;

Router::plugin('FrontendBridge', function ($routes) {
	Router::connect('/json_action/:plugin/:controller/:action/*', [
		'jsonAction' => true
	], [
		'routeClass' => 'DashedRoute'
	]);
	Router::connect('/json_action/:controller/:action/*', [
		'jsonAction' => true
	], [
		'routeClass' => 'DashedRoute'
	]);
	$routes->fallbacks('DashedRoute');
});
Switch to DashedRoute for jsonActions
Switch to DashedRoute for jsonActions
