json.extract! domain, :id, :domain, :created_at, :updated_at json.url domain_url(domain, format: :json)