skip to Main Content

Force System.Text.Json to deserialize in CamelCase – Asp.net

I am trying to build a JsonElement (or similar) using a camelCase convention from a PascalCase string using System.Text.Json. Is there a way to enforce that behavior? var jsonString = "{"Property1":"s", "PropertyCamel":{"PropertyNested":"g"}, "PPP":[{"NestedList":"1"}]}"; var deserialized = System.Text.Json.JsonSerializer.Deserialize<JsonElement>(jsonString, new JsonSerializerOptions {…

VIEW QUESTION
Back To Top
Search