From 0620fb7a8655092dca15423c78a730729b681d7a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 13 Jul 2016 19:24:26 -0400 Subject: [PATCH] DefaultContractResolver for pascal cased JSON. RTM moved to camelCase --- src/Api/Startup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index 85a0f5c652..760f400e30 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -25,6 +25,7 @@ using Newtonsoft.Json; using System.Linq; using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.Net.Http.Headers; +using Newtonsoft.Json.Serialization; namespace Bit.Api { @@ -155,7 +156,7 @@ namespace Bit.Api { jsonFormatter.SupportedMediaTypes.Add(textPlainMediaType); } - }); + }).AddJsonOptions(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver()); ; } public void Configure(