code: def category_structure(category, site):
      
      return {'description': category.title,
              'htmlUrl': '%s://%s%s' % (
                  PROTOCOL, site.domain,
                  category.get_absolute_url()),
              'rssUrl': '%s://%s%s' % (
                  PROTOCOL, site.domain,
                  reverse('zinnia:category_feed', args=[category.tree_path])),
              # Useful Wordpress Extensions
              'categoryId': category.pk,
              'parentId': category.parent and category.parent.pk or 0,
              'categoryDescription': category.description,
              'categoryName': category.title}
docs: A category structure.