json.extract! workspace, :id, :title json.memberships workspace.memberships do |membership| json.extract! membership, :user_id, :role json.description membership.user.description end json.is_accessible can_user_read_workspace?(workspace)