code/view/json.php
protected function _getEntityRoute(ModelEntityInterface $entity)
    {
        $package = $this->getIdentifier()->package;
        $view    = $entity->getIdentifier()->name;

        return $this->getRoute(sprintf('component=%s&view=%s&slug=%s&format=json', $package, $view, $entity->slug));
    }
protected function _getEntityRoute(ModelEntityInterface $entity)
    {
        $package = $this->getIdentifier()->package;
        $view    = $entity->getIdentifier()->name;

        return $this->getRoute(sprintf('component=%s&view=%s&slug=%s&format=json', $package, $view, $entity->slug));
    }
protected function _getEntityRoute ( ModelEntityInterface $ entity ) { $ package = $ this -> getIdentifier ( ) -> package ; $ view = $ entity -> getIdentifier ( ) -> name ; return $ this -> getRoute ( sprintf ( 'component=%s&view=%s&slug=%s&format=json' , $ package , $ view , $ entity -> slug ) ) ; }
Provides a default entity link

It can be overridden by creating a _getFooLinks method where foo is the entity type

@param ModelEntityInterface  $entity
@return string
Provides a default entity link