Skip to content

Commit dcf0904

Browse files
authored
Merge pull request #32 from IvanMurzak/fix/json-format
Update JSON serializer options for case insensitivity and null handling
2 parents 27d3505 + 7ef00b8 commit dcf0904

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

ReflectorNet/ReflectorNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<!-- NuGet Package Information -->
1111
<PackageId>com.IvanMurzak.ReflectorNet</PackageId>
12-
<Version>2.4.0</Version>
12+
<Version>2.4.1</Version>
1313
<Authors>Ivan Murzak</Authors>
1414
<Copyright>Copyright © Ivan Murzak 2025</Copyright>
1515
<Description>ReflectorNet is an advanced .NET reflection toolkit designed for AI-driven scenarios. Effortlessly search for C# methods using natural language queries, invoke any method by supplying arguments as JSON, and receive results as JSON. The library also provides a powerful API to inspect, modify, and manage in-memory object instances dynamically via JSON data. Ideal for automation, testing, and AI integration workflows.</Description>

ReflectorNet/src/Utils/Json/JsonSerializer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ public JsonSerializer(Reflector reflector)
7676
{
7777
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, // Ignore 'null' field and properties
7878
// DefaultIgnoreCondition = JsonIgnoreCondition.Never, // Include 'null' fields and properties
79-
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
80-
//ReferenceHandler = ReferenceHandler.Preserve,
79+
// ReferenceHandler = ReferenceHandler.Preserve,
80+
PropertyNamingPolicy = null,
81+
PropertyNameCaseInsensitive = true,
8182
WriteIndented = true,
8283
TypeInfoResolver = JsonTypeInfoResolver.Combine(
8384
new DefaultJsonTypeInfoResolver()

0 commit comments

Comments
 (0)