Unity处理Json字符串 日期:2025-06-11 人气:11 使用LitJson处理json字符串 ``` string receiveContent = request.downloadHandler.text; byte[] datas = Encoding.UTF8.GetBytes(receiveContent); receiveContent = Encoding.UTF8.GetString(datas, 0, datas.Length); JsonInfo jsonInfo = JsonMapper.ToObject<JsonInfo>(receiveContent); Debug.Log(jsonInfo.content); ``` LigJson下载方式:下载`LitJson.dll`,然后通过`Assets\Import New Assets`导入。 ### 鸣谢 - [博客园**多见多闻**](https://www.cnblogs.com/guangzhiruijie/p/17294937.html) 标签: 上一篇:后记《向阳生长,爱在感恩》文集 下一篇:Unity 手指控制UGUI元素放大缩小 随便看看 2026-01-12 后记《向阳生长,爱在感恩》文集 2026-01-12 《向阳生长,爱在感恩》文集 2026-01-12 自序《向阳生长,爱在感恩》文集 2026-01-12 序言《向阳生长,爱在感恩》文集 2026-01-08 如何使用mvn命令导入依赖 留言