Commit Graph
53 Commits
Author SHA1 Message Date
JamesNK fbfadea38a -Fix JTokenReader.ReadAsBytes and null values
-Fix JsonProperty inheritance on overriden properties
2010-08-07 07:05:37 +00:00
JamesNK 08b8477f5e -Fixed generating generic simple type names
-Changed JsonObjectAttribute to be compatible with structs
2010-07-06 10:20:10 +00:00
JamesNK c2800930ab -Added DateTimeKindHandling to BsonWriter to control how a DateTime is converted prior to being serialized
-Added Required.Always attribute validation when writing JSON as well reading
-Added TypeNameHandling.Auto to automatically write the type name when a value doesn't match the declared type
-Fixed reading multi-byte strings in BSON
2010-07-03 09:53:57 +00:00
JamesNK c9ec228942 -Removed HtmlColorConverter to remove System.Drawing.dll dependency
-Fixed culture invariance
-Fixed serialization attributes to work in .NET 2.0
2010-07-01 10:27:18 +00:00
JamesNK 4a1c8d3a80 -Fix issue when deserializing string to byte data
-Fix converting a JValue to a compatible type
-Allow JsonConverterAttribute to be added to interfaces/structs/enums
2010-06-11 13:11:44 +00:00
JamesNK f5ed7be283 -Improved default null and value handing when JSON value is not compatible with property value
-Added interfaces, structs and enums as valid targets of JsonConverterAttribute
2010-05-27 08:37:34 +00:00
JamesNK 7085a4915f -Fix ReadAsBytes for empty strings
-Fix (hopefully) signing merged assemblies
2010-04-20 07:51:33 +00:00
JamesNK 873a23a0f8 -XML documentation 2010-04-17 05:49:55 +00:00
JamesNK f7cc6abfd9 -Added support for enum values to LINQ to JSON
-Added TypeNameAssemblyFormat property to JsonSerializer. Property controls whether .NET type names are written with a full or partial assembly name
-Added TypeNameHandling to JsonProperty attribute. Allows a type names to be included on an individual property basis
-Fixed serializing HashSet<T>
-Additional permission demands added to DynamicCodeGeneration flag
2010-04-02 09:56:43 +00:00
JamesNK 0f148a9788 -Fix deserializing nullable array 2010-03-27 07:17:11 +00:00
JamesNK b0c6db675e -Added WriteRegex to BsonWriter
-Added RegexConverter
-Fixed BsonWriter writing empty string instead of null
2010-03-27 06:18:40 +00:00
JamesNK 064e5cb8ed -Fix possible errors caused by mutable GetHashCode implementations and reference tracking 2010-03-23 01:20:27 +00:00
JamesNK 7f7cccd598 -Add support for using implicit/explicit casts when converting a JSON property name to a dictionary value
-Fix DynamicReflectionDelegateFactory erroring when calling static methods
-Fix CustomCreationConverter to return null when converting a null JSON value
2010-03-23 00:21:57 +00:00
JamesNK 408a407105 -Added support for ShouldSerialize conditional methods
-Fixed not correctly skipping ignored JSON properties when deserializing via a non-default constructor
2010-03-20 09:16:24 +00:00
JamesNK 0b42b38f34 -Added additional error checking around $ref property 2010-03-17 07:27:57 +00:00
JamesNK 6d67aefac7 -Added ReflectionDelegateFactory, DynamicReflectionDelegateFactory and LateBoundDelegateFactory to support switching between dynamic and late bound reflection for medium trust environments
-Added WriteObjectId to BsonWriter
-Added BsonObjectId and BsonObjectIdConverter classes
-Added KeyValuePairConverter
-Added DynamicCodeGeneration flag to DefaultContractResolver
-Changed JsonConverter.ReadJson to add an extra parameter: currentValue
2010-03-17 06:53:47 +00:00
JamesNK 29b1ff5f0a -Add support for sharing a static cache for contract resolvers inheriting from DefaultControlResolver
-Correct error message when casting non-JValue to a privative type
2010-02-27 22:41:25 +00:00
JamesNK d4158bb53c -Escape JSON property text 2010-02-21 10:00:03 +00:00
JamesNK 98f3757498 -When converting JSON to XML using XmlNodeConverter, changed special JSON properties ($id, $ref, $type) to be attributes rather than child elements 2010-02-21 03:32:32 +00:00
JamesNK 262bb492f5 -Add LINQ to XML object support to XmlNodeConverter
-Add SerializeXNode, DeserializeXNode methods to JsonConvert
-Remove "-" prefix when serializing a JSON constructor, prefix not compatible with XML naming standard
2010-02-20 07:46:48 +00:00
JamesNK 98164c53a6 -Fixed JsonProperty.Readable and Writable not being correctly set for .NET properties with modified getter/setter visibility
-Fixed error caused by property properties on a base class when reflecting a type
-Fixed property CanRead and CanWrite coming back as false when a base class property has a private getter/setter visibility
2010-02-14 02:58:28 +00:00
JamesNK 42bf89940d -Fixed various schema generation bugs
-Renamed MemberHandler delegate to ObjectConstructor
2010-02-05 23:14:06 +00:00
JamesNK 35cd765fd7 -Improved deserialization performance
-Added ISerializable support
-Changed dictionary serialization to fall back to ToString for keys
-Changed schema generator to use JsonContracts to determine schema information
-Fixed schema validation bugs when schema has no properties
-Fixed not marking dictionary and array schemas as nullable
-Fixed serializing generic dictionary that doesn't implement IDictionary
2010-02-04 09:18:53 +00:00
JamesNK 4dd8a2f6b8 -Change Type to always be written as AssemblyQualifiedName 2010-01-31 05:32:53 +00:00
JamesNK 621916f5a6 -Implemented INotifyCollectionChanged on JContainer in Silverlight
-Added StreamingContext to JsonSerializer
-Added CreateMemberValueProvider method to DefaultContractResolver
-Fixed not falling back the original class from the metadata class when attribute not found
2010-01-19 08:22:35 +00:00
JamesNK f9b34390f5 -Fix deserializing empty BSON structures
-Fix error message when attempting to deserialize custom dictionary with no default constructor
-Fix serializing private base members marked with JsonProperty attribute
-Fix performance issue when deserializing to object member
2010-01-16 06:10:10 +00:00
JamesNK 75649bfa00 -Add support for reading octal and hexadecimal numbers from JSON
-Fix serializing indexed properties
-Fix serializing JRaw properties
2010-01-08 08:12:40 +00:00
JamesNK 324c4e4bc5 -JsonTextReader, BsonReader performance
-Fix dictionary key encoding when serializing
-Fix WrappedDictionary being set to a property when deserializing
-Fix Silverlight serialization security error
2010-01-01 23:13:35 +00:00
JamesNK 961945657a -Added JsonPrimitiveContract and JsonLinqContract
-Removed JsonRaw and replaced with JRaw
-Fixed properties on existing derived values not being populated during deserialization
2009-12-27 03:30:43 +00:00
JamesNK 2e54bf69ab -Fixed ToString culture inconsistence when serializing dictionary key
-Documentation
2009-12-08 22:27:13 +00:00
JamesNK f1a9993723 -Added reading and writing binary JSON (BSON) support - work in progress
-Added BsonReader, BsonWriter
-Added support for reading and writing byte arrays to JsonReader, JsonWriter and LINQ to JSON classes
-Added ReadAsBytes to JsonReader
-Changed Silverlight build serializer to look for a TypeConverter
-Changed .NET build to not rely on System.ComponentModel.DataAnnotations assembly to support .NET 4.0 client profile
-Remove DateTimeOffset stand-in from Compact Framework build
-Fixed .NET 2.0 build to run on environments without .NET 2.0 SP1
-Fixed deserialization to always use a new value created from a JsonConverter
-Fixed XmlNodeConverter to support converting comments in JSON
2009-12-06 23:10:14 +00:00
JamesNK 4ae9c5767b -Fixed unclosed object when including type name with array 2009-11-05 05:54:17 +00:00
JamesNK 2a63ea24e3 -Added ObjectCreationHandling to JsonPropertyAttribute
-Added IValueProvider, ReflectionValueProvider, DynamicValueProvider
-Added Dynamic.snk
-Added Required enum with options Default, AllowNull and Always
-Added serialization event support to Silverlight version
-Added Converter to JsonProperty for JsonConverter
-Changed IsRequired to Required enum
-Changed schema generator to allow for Required enum options
-Changed Silverlight project version to Silverlight 3
-Improved error message when JSON array encountered for object and vice-versa when deserializing
-Improved error message for converting types when deserializing
-Improved error message from getting and setting properties when serializing and deserializing
-Fixed empty string being converted to null when deserializing
-Removed dependency on Entity Framework and LINQ to SQL assemblies
2009-11-02 08:21:02 +00:00
JamesNK b4b3905714 -Added DataSetConverter, DataTableConverter
-Added JPath and SelectToken to JToken
-Fixed schema id not being written for collections
-Fixed TimeSpan serialization on Compact Framework
-Fixed unicode line break string encoding
2009-10-14 02:40:20 +00:00
JamesNK b313445e01 -Documentation
-Added Error event to JsonSerializer
2009-10-11 04:23:35 +00:00
JamesNK 0a45159376 -Fix test 2009-10-10 06:14:41 +00:00
JamesNK 7e75bbdcf7 -Performance
-Added ConstructorHandling to allow object creation using non-public default constructors
2009-10-10 06:09:15 +00:00
JamesNK 75627d6292 -XML documentation
-Changed OnError to be available in .NET 2.0, Silverlight and Compact Framework builds
-Added StreamingContext stand-in for frameworks where it isn't available
-Split test classes out of JsonSerializerTests
2009-10-10 00:54:01 +00:00
JamesNK e8dc0bb764 -Changed IsRequired to accept null properties 2009-10-05 08:26:13 +00:00
JamesNK a5b7507d17 -Fixed List<T> silly buggers with nullable types - http://tinyurl.com/yagsptj - That was tough! 2009-10-03 07:54:47 +00:00
JamesNK 3ae2accce4 -More error handling work 2009-09-20 09:50:35 +00:00
JamesNK 379c3ce09b -Added more IBindingList functionality
-Fixed many bugs around JProperty and JObject
-Changed JProperty constructor that doesn't take a value to internal
-Added many unit tests
-Renamed CloneNode to CloseToken
-Changed JPropertyDescriptor to always return the token rather than value
2009-09-04 13:46:47 +00:00
JamesNK 95caaf9dc1 -Added type descriptor objects to support JObject property databinding
-Added OnErrorAttribute and ErrorContext for handling serialization errors
2009-08-22 12:01:24 +00:00
JamesNK ff5c48660d -Added .NET 2.0 support
-Documentation
2009-08-01 12:06:21 +00:00
JamesNK 5611228772 -Changed serializer to create JObject/JArray when deserializing complex JSON to an object type 2009-07-31 11:08:33 +00:00
JamesNK 7f0bafeea7 -Fixed generic type deserialization with type name tracking enabled 2009-07-30 08:59:07 +00:00
JamesNK b20d58bb92 -Updated documentation
-Added complete ADO.NET Entities serialization and deserialization
2009-07-26 06:34:28 +00:00
JamesNK 265abaf08c -Documentation
-Example unit tests for documentation
-Added IsReference to JsonPropertyAttribute
-Fixed resolving whether a property should be a reference
2009-07-06 09:36:03 +00:00
JamesNK a4022ec5d3 -More documentation (I know!)
-Fixed decimals to always be written with a decimal place
-Replaced IMappingResolver with IContractResolver
-Renamed JsonMemberMapping to JsonProperty
-Added JsonContract, JsonObjectContract, JsonArrayContract, JsonDictionaryContract
-Added support for OnSerializing, OnSerialized, OnDeserializing, OnDeserialized callback methods
-Major refactoring of serialization internals
2009-07-05 02:55:58 +00:00
JamesNK 3b26adfdd1 -Added support for DataContractAttribute and DataMemberAttribute to JsonSerializer
-Added support for serializing private members by marking them with JsonPropertyAttribute or DataMemberAttribute
2009-05-09 10:19:32 +00:00