json.extract! todo, :id, :title, :status, :created_at, :updated_at json.url todo_url(todo, format: :json)