Deserializing JSON to a string or a value
A guide to handling APIs that return JSON values as either strings or other types, using a custom C# StringOrValue<T> struct for flexible deserialization.
A guide to handling APIs that return JSON values as either strings or other types, using a custom C# StringOrValue<T> struct for flexible deserialization.
Explains strategies to handle nullable reference type warnings when deserializing JSON into C# object models, comparing different approaches and their trade-offs.
Explains why Gson is unsuitable for contract testing in E2E tests due to its permissive deserialization, and recommends using Jackson instead.
A guide to creating a custom JsonConverter in System.Text.Json for deserializing JSON into polymorphic class hierarchies, using a real-world SDK example.