diff --git a/NineChroniclesUtilBackend.Store/Models/State/BaseData.cs b/NineChroniclesUtilBackend.Store/Models/State/BaseData.cs index 1e77ea1a..5c89c010 100644 --- a/NineChroniclesUtilBackend.Store/Models/State/BaseData.cs +++ b/NineChroniclesUtilBackend.Store/Models/State/BaseData.cs @@ -7,7 +7,7 @@ public class BaseData { protected static JsonSerializerSettings JsonSerializerSettings => new JsonSerializerSettings { - Converters = { new BigIntegerToStringConverter(), new IStateJsonConverter() }, + Converters = { new IStateJsonConverter() }, Formatting = Formatting.Indented, NullValueHandling = NullValueHandling.Ignore }; diff --git a/NineChroniclesUtilBackend.Store/Util/IStateJsonConverter.cs b/NineChroniclesUtilBackend.Store/Util/IStateJsonConverter.cs index 85116b2f..a9cbd71a 100644 --- a/NineChroniclesUtilBackend.Store/Util/IStateJsonConverter.cs +++ b/NineChroniclesUtilBackend.Store/Util/IStateJsonConverter.cs @@ -23,7 +23,9 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s { JObject jo = JObject.FromObject(value, JsonSerializer.CreateDefault(new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore, - Converters = new List() { } + Converters = new List() { new BigIntegerToStringConverter() }, + Formatting = Formatting.Indented, + NullValueHandling = NullValueHandling.Ignore })); IValue? ivalue = value switch