We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e72b7 commit 3365d59Copy full SHA for 3365d59
src/JsonApiDotNetCore/Internal/ErrorCollection.cs
@@ -1,5 +1,6 @@
1
using System.Collections.Generic;
2
using Newtonsoft.Json;
3
+using Newtonsoft.Json.Serialization;
4
5
namespace JsonApiDotNetCore.Internal
6
{
@@ -20,7 +21,8 @@ public void Add(Error error)
20
21
public string GetJson()
22
23
return JsonConvert.SerializeObject(this, new JsonSerializerSettings {
- NullValueHandling = NullValueHandling.Ignore
24
+ NullValueHandling = NullValueHandling.Ignore,
25
+ ContractResolver = new CamelCasePropertyNamesContractResolver()
26
});
27
}
28
0 commit comments