Newtonsoft.Json 序列化时按格式自动换行

File.WriteAllText(wordCouplePinyinFilepath, JsonConvert.SerializeObject(dictWordCouples, new JsonSerializerSettings { Formatting = Formatting.Indented }));

 

posted on 2025-01-16 22:48  空明流光  阅读(56)  评论(0)    收藏  举报

导航