JsonFx.NET - JSON Serializer
The JsonFx.NET JSON parser/serializer functions similarly to the XmlSerializer in .NET
Serializes and deserializes any Dictionary<String, T> and IDictionary with
String keys directly as a JSON object
Serializes and deserializes any List<T>, ArrayList, LinkedList<T>, Queue<T> and
many other IEnumerable types directly as JSON arrays
Serializes and deserializes DateTime, Enum, Nullable<T>, Guid and other
common .NET Types directly as JSON primitives
Serializes and deserializes strongly-typed custom classes (similarly to XML
Serialization in .NET Framework)
Serializes C# 3.0 Anonymous Types directly as JSON objects
Serializes C# 3.0 LINQ Queries as JSON arrays of objects (by enumerating the results)
Follows Postel's Law ("Be conservative in what you do; be liberal in what you accept from others.")
by accepting handling many non-JSON JavaScript concepts:
- Common literals such as "Infinity", "NaN", and "undefined"
- Ignores block and line comments when deserializing
Optional ability to control serialization via attributes/interfaces:
JsonFx.Json.IJsonSerializable:
Interface which allows classes to control their own JSON serialization
JsonFx.Json.JsonIgnoreAttribute:
Attribute which designates a property or field to not be serialized
System.ComponentModel.DefaultValueAttribute:
Member does not serialize if the value matches the DefaultValue attribute
JsonFx.Json.JsonNameAttribute:
Attribute which specifies the naming to use for a property or field when serializing
JsonFx.Json.JsonSpecifiedPropertyAttribute:
Attribute which specifies the name of the property which specifies if member should be serialized
Optional Type-Hinting improves deserializing to strongly-typed objects
JsonFx.Json.JsonWriter.TypeHintName & JsonFx.Json.JsonReader.TypeHintName:
Property designates the name of the type hint property (e.g. "__type") and enables type hinting
Optional PrettyPrint mode helps with debugging / human-readability
JsonFx.Json.JsonWriter.PrettyPrint
Optional custom DateTime serialization override
JsonFx.Json.JsonWriter.DateTimeSerializer
open-flash-chart
需积分: 0 78 浏览量
2011-04-09
21:02:25
上传
评论
收藏 4.7MB RAR 举报
safinyxf
- 粉丝: 5
- 资源: 8
最新资源
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
- Python排序算法.zip
- C语言实现直接插入排序、希尔排序、选择排序、冒泡排序、堆排序、快速排序、归并排序、计数排序,并带图详解.zip
- 常用工具集参考用于图像等数据处理
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0