1 2
json.extract! operation, :id, :name, :created_at, :updated_at json.url operation_url(operation, format: :json)