LitJson4Unity
LitJson4Unity is an enhanced JSON serialization library built on LitJson, optimized specifically for Unity development. It extends the original library with native float support, built-in Unity type serialization (Vector2, Vector3, Quaternion, Color, etc.), JsonIgnore attributes for selective field serialization, and formatted JSON output. Simply integrate the scripts from the Plugins/LitJson directory into your project to enable robust JSON handling for game data and configuration management.
Unity Project
Built with Unity 2018.3.4f1 · download the source from GitHub

README
LitJson4Unity
适用于Unity的改进型LitJson库
简介
基于原生的LitJson库改造的适用于Unity的LitJson库。支持以下原生版本不支持的特性:
- 支持float类型(最新原生版本已经支持)
- 支持Unity内建类型(Vector2、Vector3、Rect、AnimationCure、Bounds、Color、Color32、Quaternion、RectOffset等)
- 支持JsonIgnore Attritube,对某些字段跳过序列化
- 支持对输出的Json内容格式化,更规整
使用方法
直接将 Plugins/LitJson目录下所有的cs脚本放到你的工程中即可。
博客教程
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In