11000+款5星资源
8.5万+用户参与评分
10万+社区成员鼎力支持
每款资源都经过 Unity 审核
1/6
One-file JSON Parser can parse JSON in a single file, ItsJsonParser.cs.
You can easily use, copy, modify, reproduce, transmit, and distribute the software.
Feature
- Parse JSON string to class
- Parse class to JSON string
Details
- Nested classes and structs can be parsed
- Nested Arrays and Lists can be parsed
- Enum variables can be parsed as name
- Nullable variables can be parsed (when not null)
- SerializeField and NonSerialized attributes can be used to mark as parse target
Example
To JSON text from Class
FooClass foo = new FooClass();
string jsonText = ItsJsonParser.ToJson(foo);
From JSON text to Class
string jsonText = "{\"foo\":1, \"bar\":\"baz\"}";
FooClass foo = ItsJsonParser.FromJson<FooClass>(jsonText);
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
语言
USD
EUR