Web API 2:オブジェクトとそのサブオブジェクトで、camelCasedプロパティ名を使用してJSONを返す方法
更新 すべての回答をありがとう。私は新しいプロジェクトに参加していて、ようやくこれの最後に到達したようです。次のコードが実際に原因であるように見えます。 public static HttpResponseMessage GetHttpSuccessResponse(object response, HttpStatusCode code = HttpStatusCode.OK) { return new HttpResponseMessage() { StatusCode = code, Content = response != null ? new JsonContent(response) : null }; } 他の場所... public JsonContent(object obj) { var encoded = JsonConvert.SerializeObject(obj, Newtonsoft.Json.Formatting.None, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore } ); _value …