cancle json refrence

This commit is contained in:
2025-08-13 17:28:24 +08:00
parent 67cc7346dc
commit 71acb35df9
-1
View File
@@ -251,7 +251,6 @@ public static class SimApiExtensions
.AddJsonOptions(opt => .AddJsonOptions(opt =>
{ {
opt.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; opt.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
opt.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.Preserve;
}); });
} }