private function getHypertextJson($routes = [])
    {
        if (!$routes) {
            return false;
        }
        $links = [];
        foreach ($routes as $name => $route) {
            $links[] = ['rel' => $name, 'href' => $route];
        }
        return $links;
    }
private function getHypertextJson($routes = [])
    {
        if (!$routes) {
            return false;
        }
        $links = [];
        foreach ($routes as $name => $route) {
            $links[] = ['rel' => $name, 'href' => $route];
        }
        return $links;
    }
private function getHypertextJson ( $ routes = [ ] ) { if ( ! $ routes ) { return false ; } $ links = [ ] ; foreach ( $ routes as $ name => $ route ) { $ links [ ] = [ 'rel' => $ name , 'href' => $ route ] ; } return $ links ; }
Transforms the hypertext routes into an array for the json string.

@param array $routes The hypertext routes.

@return array An array of links for the json string.
Transforms the hypertext routes into an array for the json string .