JSON开发包PowerJSON.zip

时间:2022-08-04 20:43:53
【文件属性】:

文件名称:JSON开发包PowerJSON.zip

文件大小:777KB

文件格式:ZIP

更新时间:2022-08-04 20:43:53

开源项目

PowerJSON 是 fastJSON 的一个扩展版本,提供一些新方法、类和接口,以及对发现的问题进行修复。详细列表请看这里。示例代码:// marks the internal DemoClass class deserializable [JsonSerializable] internal class DemoClass {     // marks MyProperty property to be serialized to a field named "prop"     [JsonField ("prop")]     public string MyProperty { get; set; }     // marks MyEnumProperty property to be serialized to a field named "enum"     [JsonField ("enum")]     public MyEnum MyEnumProperty { get; set; }     // marks not to serialize the Number property, if its value is 0     [System.ComponentModel.DefaultValue (0)]     public int Number { get; set; }     // marks the serialized name of Identifier will be "a", if its type is ClassA,     //     and "b" for ClassB, and "variant" for other types     [JsonField ("a", typeof (ClassA))]     [JsonField ("b", typeof (ClassB))]     [JsonField ("variant")]     public object Identifier { get; set; }     // marks the InternalValue property will not be serialized     [JsonInclude (false)]     // marks the InternalValue property will not be deserialized     [System.ComponentModel.ReadOnly (true)]     public int InternalValue { get; set; } } public enum MyEnum {     None,     // marks the serialized name of Vip to "VIP"     [JsonEnumValue ("VIP")]     Vip } 标签:PowerJSON


【文件预览】:
PowerJSON-master
----PowerJson.nuspec(1KB)
----output()
--------net20()
--------Help()
--------net40()
----.gitignore(308B)
----Source()
--------ValueConverter.cs(4KB)
--------JsonSerializer.cs(34KB)
--------Extensions()
--------Reflection.cs(20KB)
--------DynamicJson.cs(2KB)
--------PowerJson.csproj(7KB)
--------ReflectionController.cs(33KB)
--------ExtraConverters()
--------Formatter.cs(2KB)
--------SerializationManager.cs(40KB)
--------Converters.cs(4KB)
--------ReflectionCache.cs(10KB)
--------JsonConverter.cs(8KB)
--------JsonInterceptor.cs(7KB)
--------AssemblyInfo.cs(556B)
--------SerializationInfo.cs(5KB)
--------JsonParser.cs(10KB)
--------SerializationAttributes.cs(12KB)
--------JsonDeserializer.cs(33KB)
--------JSON.cs(9KB)
--------JsonStringWriter.cs(3KB)
--------PowerJson net2.csproj(7KB)
--------JsonSerializationException.cs(3KB)
--------SafeDictionary.cs(4KB)
--------Constants.cs(3KB)
--------PowerJson.snk(596B)
--------JSONParameters.cs(2KB)
----Documentation()
--------ContentLayout.content(1KB)
--------icons()
--------Documentation.shfbproj(6KB)
--------Content()
----PowerJson.sln(4KB)
----README.md(7KB)
----history.txt(10KB)
----MsUnitTest()
--------ConcurrentTests.cs(5KB)
--------CollectionTests.cs(22KB)
--------GenericTypeTest.cs(2KB)
--------DataContractAttributesTests.cs(3KB)
--------MsUnitTest.csproj(6KB)
--------BonusPackTests.cs(4KB)
--------SerializationAttributeTests.cs(30KB)
--------NumericValueTests.cs(762B)
--------PolymorphicTests.cs(2KB)
--------Tests.cs(19KB)
--------SerializationControlTests.cs(11KB)
--------PerformanceTests.cs(8KB)
--------SampleClasses.cs(6KB)
--------Properties()
----Benchmarks()
--------packages.config(287B)
--------Program.cs(19KB)
--------Benchmarks.csproj(4KB)
--------AssemblyInfo.cs(1KB)
--------mytests.cs(9KB)
--------dataobjects.cs(5KB)

网友评论