chore(json): use stdlib json for compatibility

This commit is contained in:
yusing
2026-01-30 00:30:48 +08:00
parent 54b3008cce
commit 57f7b72923
4 changed files with 9 additions and 9 deletions

View File

@@ -83,7 +83,7 @@ func save() error {
errs := gperr.NewBuilder("failed to save data stores")
for ns, store := range stores {
path := filepath.Join(storesPath, string(ns)+".json")
if err := serialization.SaveFile(path, &store, 0o644, sonic.Marshal); err != nil {
if err := serialization.SaveFile(path, &store, 0o644, json.Marshal); err != nil {
errs.Add(err)
}
}