快速的.NET JSON 序列化库:Jil
一个快速的.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 ); }
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!