-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Description
I'm trying to use this library in an AOT project which doesn't support reflection-based JSON serialization and came across an issue where deserializing doesn't use the same JsonSerializerOptions that's passed in the constructor for SystemTextJsonSerializer.
socket.io-client-csharp/src/SocketIO.Serializer.SystemTextJson/SystemTextJsonSerializer.cs
Lines 350 to 354 in 05875a0
| var newMessage = JsonSerializer.Deserialize<JsonMessage>(text, new JsonSerializerOptions | |
| { | |
| NumberHandling = JsonNumberHandling.AllowReadingFromString, | |
| PropertyNamingPolicy = JsonNamingPolicy.CamelCase | |
| }); |
This unfortunately makes it impossible to provide a TypeInfoResolver. Would it be OK to use the passed _options object here instead?
rudischilder
Metadata
Metadata
Assignees
Labels
No labels