Error

PHP Warningyii\base\ErrorException

json_decode() expects parameter 1 to be string, array given

$_GET = [
    'path' => 'Restaurants',
];

$_SESSION = [
    '__flash' => [],
];