快速的.NET JSON 序列化库:Jil
jopen
10年前
一个快速的.NET JSON(反)序列化,基于 Sigil 构建并进行一些疯狂的优化。
支持以下类型(以及其中的任何组成的用户定义的类型):
- Strings (including char)
- Booleans
- Integer numbers (int, long, byte, etc.)
- Floating point numbers (float, double, and decimal)
- DateTimes & DateTimeOffsets
- See Configuration for further details
- Nullable types
- Enumerations
- Including [Flags] </ul> </li>
- Guids
- Only the "D" format </ul> </li>
- IList<T> implementations
- IDictionary<TKey, TValue> implementations where TKey is a string or enumeration </ul>
Serializing using(var output = new StringWriter()) { JSON.Serialize( new { MyInt = 1, MyString = "hello world", // etc. }, output ); }