Skip to content

Commit

Permalink
Made SystemTextJsonSerializer treat property names as case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Oct 1, 2023
1 parent 67b256c commit 062f30d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/TypedRest/Serializers/SystemTextJsonSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ public SystemTextJsonSerializer()
/// <summary>
/// Serializer options.
/// </summary>
public JsonSerializerOptions Options { get; } = new()
public JsonSerializerOptions Options { get; } = new(JsonSerializerDefaults.Web)
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
};

Expand Down

0 comments on commit 062f30d

Please sign in to comment.