def serialize_pagination(pagination_obj):
    """
    Returns a dictionary of serialized sqalchemy pagination object.

    Args:
        pagination_obj (flask.ext.sqlalchemy.Pagination): a pagination object

    Returns:
        dict: the serialization of the pagination object
    """
    return {
        'items': [item.to_json() for item in pagination_obj.items],
        'current_page': pagination_obj.page,
        'next_page': pagination_obj.next_num,
        'prev_page': pagination_obj.prev_num,
        'total_pages': pagination_obj.pages,
        'total_number_items': pagination_obj.total,
    }