JsonPatchDocument converter doesn't respect other converters added to JsonSerializerOptions #24
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
question
Further information is requested
Hi! We have string converter which trims string values and replaces empty strings with
null
. WhenJsonPatchDocumentConverter
reads string values (specifically fromvalue
fields), it just usesval = reader.GetString()
, so it ignores any string converters added to defaultJsonSerializerOptions
. Is it possible to change value reading logic to justval = JsonSerializer.Deserialize<object>(ref reader);
instead of this and this switch statements, to allow other converters to process values? Thanks!The text was updated successfully, but these errors were encountered: