public static void Apply(this JsonSerializer value, Action <JsonSerializerSettings> configureSettings) { var settings = new JsonSerializerSettings(); settings.Apply(value); configureSettings?.Invoke(settings); settings.Apply(value); }