File tree Expand file tree Collapse file tree
Project-Aurora/Project-Aurora/Settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,7 +217,9 @@ public static void Save(IAuroraConfig configuration)
217217
218218 var content = JsonConvert . SerializeObject ( configuration , Formatting . Indented , new JsonSerializerSettings
219219 {
220- TypeNameHandling = TypeNameHandling . Auto , SerializationBinder = new AuroraSerializationBinder ( )
220+ TypeNameHandling = TypeNameHandling . Auto ,
221+ SerializationBinder = new AuroraSerializationBinder ( ) ,
222+ ContractResolver = new SystemTextJsonContractResolver ( ) ,
221223 } ) ;
222224
223225 Directory . CreateDirectory ( Path . GetDirectoryName ( path ) ) ;
@@ -235,7 +237,9 @@ public static async Task SaveAsync(IAuroraConfig configuration)
235237
236238 var content = JsonConvert . SerializeObject ( configuration , Formatting . Indented , new JsonSerializerSettings
237239 {
238- TypeNameHandling = TypeNameHandling . Auto , SerializationBinder = new AuroraSerializationBinder ( )
240+ TypeNameHandling = TypeNameHandling . Auto ,
241+ SerializationBinder = new AuroraSerializationBinder ( ) ,
242+ ContractResolver = new SystemTextJsonContractResolver ( ) ,
239243 } ) ;
240244
241245 Directory . CreateDirectory ( Path . GetDirectoryName ( path ) ) ;
You can’t perform that action at this time.
0 commit comments