json.extract! carrier, :id, :name, :created_at, :updated_at json.url carrier_url(carrier, format: :json)