Replace Newtonsoft.Json with System.Text.Json for MonoBehaviour assets

This commit is contained in:
VaDiM
2026-03-23 19:45:21 +03:00
parent 1eb35015c3
commit e92d96bb08
6 changed files with 9 additions and 17 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
using AssetStudio;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -121,7 +120,7 @@ namespace AssetStudioGUI
var m_Type = Studio.MonoBehaviourToTypeTree(m_MonoBehaviour);
type = m_MonoBehaviour.ToType(m_Type);
}
var str = JsonConvert.SerializeObject(type, Formatting.Indented);
var str = System.Text.Json.JsonSerializer.Serialize(type, Object.JsonOptions);
File.WriteAllText(exportFullPath, str);
return true;
}