json.extract! note, :id, :content, :created_at json.url note_url(note, format: :json)