protected function createBreadcrumbJson(Folder $folder)
    {
        $breadcrumbs = array();
        while ($folder->exists()) {
            $breadcrumbs[] = array(
                'title' => $folder->Title,
                'id' => $folder->ID
            );

            $folder = $folder->Parent();
        }
        $breadcrumbs[] = array(
            'title' => ASSETS_DIR,
            'id' => 0
        );

        return array_reverse($breadcrumbs);
    }