code/libraries/joomlatools/library/view/json.php
protected function _getCollection(KModelEntityInterface $collection)
    {
        $result = array();

        foreach ($collection as $entity) {
            $result[] = $this->_getEntity($entity);
        }

        return $result;
    }
protected function _getCollection(KModelEntityInterface $collection)
    {
        $result = array();

        foreach ($collection as $entity) {
            $result[] = $this->_getEntity($entity);
        }

        return $result;
    }
protected function _getCollection ( KModelEntityInterface $ collection ) { $ result = array ( ) ; foreach ( $ collection as $ entity ) { $ result [ ] = $ this -> _getEntity ( $ entity ) ; } return $ result ; }
Returns the JSON representation of a collection

@param  KModelEntityInterface $collection
@return array
Returns the JSON representation of a collection