Repository navigation
Release v7.36.0
Fixes derived-type JSON serialization and structured concept reading (part of #1297).
Changed
- Writing a derived type whose concrete type has a custom converter that does not produce a JSON object contract now throws
NotSupportedException. Previously the converter wrote the type's CLR properties anyway.
Fixed
- The derived-type converter now applies
[JsonIgnore]andJsonIgnoreConditionto every property it writes, including properties declared on the concrete type and overridden properties. (part of #1297) - The
_derivedTypeIddiscriminator is always written under that name, even whenDictionaryKeyPolicyis set. The name produced by the policy is still accepted when reading older payloads. (part of #1297) - Resolving the contract for a concrete derived type no longer re-enters the derived-type converter, and the resolved read contract is cached per serializer options. (part of #1297)
- Properties whose names collide after a naming policy is applied are written with last-value-wins output, as before. Errors from member converters now surface instead of being swallowed. (part of #1297)
- Structured
ConceptAs<T>values are now read through the JSON converter registered for the underlying type. (part of #1297)