From 2c7e2adf4832bc924b4dd620f2ba5462dc7a0473 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Thu, 19 Feb 2026 19:14:50 -0600 Subject: [PATCH] Whycome this was Newtonsoft? --- KfChatDotNetBot/Services/Money.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/KfChatDotNetBot/Services/Money.cs b/KfChatDotNetBot/Services/Money.cs index dc5f45a..106d5d5 100644 --- a/KfChatDotNetBot/Services/Money.cs +++ b/KfChatDotNetBot/Services/Money.cs @@ -1,9 +1,10 @@ -using Humanizer; +using System.Text.Json; +using System.Xml; +using Humanizer; using KfChatDotNetBot.Models; using KfChatDotNetBot.Models.DbModels; using KfChatDotNetBot.Settings; using Microsoft.EntityFrameworkCore; -using Newtonsoft.Json; using NLog; using RandN; using RandN.Compat; @@ -348,7 +349,7 @@ public static class Money string? metaJson = null; if (gameMeta != null) { - metaJson = JsonConvert.SerializeObject(gameMeta, Formatting.Indented); + metaJson = JsonSerializer.Serialize(gameMeta, Formatting.Indented); _logger.Debug("Serialized metadata follows"); _logger.Debug(metaJson); }