0

Looks like, JsonPatchDocument's ApplyTo takes the serialization settings from JsonConvert.DefaultSettings. There should be a way to pass custome JsonSerializerSettings to th library so ApplyTo can user specific settings such as customized JsonConverters.

Is there a way to do so?

CurrentSolution:

JsonConvert.DefaultSettings = () => JsonSerializerSettings; patchDoc.ApplyTo(obj); 

Ideally I shouldn't need to override the global serializer settings. Is there a way to do so?

4

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.