制作本地数据读取

using Newtonsoft.Json

读取:JsonConvert.DeserializeObject<Dictionary<float,int>>(filepath) // Resources 路径下

写入:string  = JsonConvert.SerializeObject( xxx )

读取json文件,使用c#类或者数据结构去读取。

配合file.WriteAllText(path, str),file.ReadAllText()

用于读取本地json非常方便

原文地址:https://www.cnblogs.com/leilei-weapon/p/11172529.html