Commit Graph
129 Commits
Author SHA1 Message Date
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 fa85ebfbbf -Fix passed in JsonConverter not overriding internally specified JsonConverter 2010-01-28 07:20:01 +00:00
JamesNK be6ed7daaa -Added ReadRootValueAsArray, DateTimeKindHandling properties to BsonReader
-Included BSON is .NET 2.0, Silverlight and Compact Framework builds
2010-01-22 22:17:56 +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 974178a162 -Performance 2009-12-29 02:53:53 +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 9144bc6c80 -Added DateTimeConverterBase
-Changed class converter to be resolved from contract
-Changed built in converters to be resolved once when the contract is created. Big performance gain!
2009-12-26 18:51:39 +00:00
JamesNK f574bfbf83 -Fixed JTokenWriter not writing comments
-Fixed BsonWriter not erroring when writing non-BSON compatible content
2009-12-20 00:16:02 +00:00
JamesNK b6ff852467 -Improve BsonReader string performance 2009-12-09 05:24:06 +00:00
JamesNK 2e54bf69ab -Fixed ToString culture inconsistence when serializing dictionary key
-Documentation
2009-12-08 22:27:13 +00:00
JamesNK 52279e610b -Upgraded Sandcastle Help File Builder project file to 1.8
-Documentation
2009-12-08 01:17:40 +00:00
JamesNK 30322a49d2 -XML documentation
-Fixed culture warnings
2009-12-07 22:39:10 +00:00
JamesNK 5cc46295c8 -Additional BSON work and tests 2009-12-07 11:24:34 +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 7d845d1f13 -Possible fix for compact framework issue - http://json.codeplex.com/Thread/View.aspx?ThreadId=76355 2009-11-29 07:41:38 +00:00
JamesNK 621b647654 -Added DBNull support to JValue 2009-11-05 06:04:58 +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 be8d951c03 -Fixed exception when loading JObject with multiple properties of the same name. Last property will be used
-Removed redundant ValidateObject method from JContainer
2009-10-03 04:33:15 +00:00
JamesNK 33ac3a9c44 -Fixed schema generation with negative enum values 2009-10-02 23:49:11 +00:00
JamesNK 3ae2accce4 -More error handling work 2009-09-20 09:50:35 +00:00
JamesNK fac4f481b3 -Added set indexer to JToken 2009-09-18 21:38:50 +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 5167415f47 -Changed empty string to be deserialized as null for nullable types 2009-08-06 08:52:00 +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 c770fe5e7c -Added implicit conversions from primitive values to JValue 2009-07-27 10:20:01 +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 6b19c9cf72 -More documentation
-Changed CustomCreationConverter to throw NotImplementedException when serializing
2009-06-19 12:37:49 +00:00
JamesNK 67654ec106 -JsonObjectAttribute will now force a collection class to be serialized as an object
-Renamed ThreadSafeDictionaryWrapper to ThreadSafeStore
2009-06-18 12:23:49 +00:00
JamesNK 63160b04ff -Added documentation (gasp!)
-Fixed serialization of Uri members on Silverlight/Compact Framework
-Fixed serialization of JToken members
-Fixed (hopefully) cache threading issues
2009-06-16 09:50:59 +00:00
JamesNK d160b9f587 -Fixed serializer handling of comments in JSON 2009-05-31 12:10:54 +00:00
JamesNK fec0ec5a1d -Lots of XML code comments
-Added type name handling to serializer
-Fixed various compilation warnings
2009-05-30 06:13:51 +00:00
JamesNK f0c5be266b -Added JsonSerializer argument to JsonConverter.ReadJson and JsonConverter.WriteJson. Needed because serializer now has state
-Added CustomCreationConverter
-Added IsReference to JsonContainerAttribute
-Added PreserveReferencesHandling to JsonSerializer
-Added IReferenceResolver to JsonSerializer
-Split internals of JsonSerializer into JsonSerializerWriter (serializes) and JsonSerializerReader (deserializes)
-Moved serialize stack from JsonWriter (yuck) to JsonSerializerWriter (yay)
-Added FromObject overload with JsonSerializer argument for cases when state is needed
2009-05-13 10:15:41 +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