json.extract! paste, :id, :search_pastes, :created_at, :updated_at json.url paste_url(paste, format: :json)