json.extract! client, :id, :created_at, :updated_at json.url client_url(client, format: :json)