json.extract! permission, :id, :created_at, :updated_at json.url permission_url(permission, format: :json)