Commit Graph
102 Commits
Author SHA1 Message Date
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
JamesNK a0a8599d3d -Fix bug when JValue of type string has a null string value
-Fix JToken casting bugs to float and decimal
2009-04-30 10:12:42 +00:00
JamesNK 52f8657106 -Changed JObject to enumerate over KeyValuePair<string, JToken> rather than JToken. Breaking change. 2009-04-27 08:49:08 +00:00
JamesNK 6e205383c7 -Added MetadataTypeAttribute support when searching for attributes
-Tests around serializing/deserializing LINQ to SQL classes
2009-04-26 07:11:30 +00:00
JamesNK affb9ec906 -Added even more detail to no root XML element exception message when converting JSON to XML. Seriously, if you still get stuck here you're an idiot
-Added NullValueHandling, DefaultValueHandling and ReferenceLoopHandling to JsonPropertyAttribute
-Change JsonMemberMapping from a struct to a class. Now has too many properties for a struct
2009-04-22 05:56:34 +00:00
JamesNK 3e22e30261 -Changed DefaultDateTimeFormat on IsoDateTimeConverter to not display zero milliseconds 2009-04-12 01:21:27 +00:00
JamesNK 6042bf2207 -Moved JTokenReaderTest.cs and JTokenWriterTest.cs to Linq test directory 2009-04-10 05:00:58 +00:00
JamesNK ed53b0c9ad -Rename JsonTokenReader, JsonTokenWriter, JsonTokenType to JTokenReader, JTokenWriter, JTokenType 2009-04-10 04:45:58 +00:00
JamesNK 3630a43f11 -Added StringEnumConverter
-Added BinaryConverter
2009-03-29 01:36:06 +00:00
JamesNK b9bedd1233 -Rename Product.Expiry to Product.ExpiryDate in tests 2009-03-21 09:19:16 +00:00
JamesNK 9fd47e6334 -Added support to deserializing to IEnumerable<T>, IList<T>, IDictionary<K, V>
-Added populating members when creating object from non default constructor
-Added case best match when deserializing properties
-Added ToString(Formatting, JsonConverters[]) overload to JToken
-Added SerializeObject(object, Formatting, JsonConverter[]) overload to JsonConvert
-Added IMappingResolver. Property added to JsonSerializer, JsonSerializerSettings, JsonSchemaGenerator
-Added CamelCaseMappingResolver
2009-03-14 00:38:28 +00:00
JamesNK e5eaa14990 -Added AddAfterSelf, AddBeforeSelf to JToken 2009-02-27 07:02:36 +00:00
JamesNK 6068b06744 -Fix ToString(JsonConverter[]) overload on JToken
-Ensure JavaScriptDateTimeConverter converts nullable DateTimes
-Make JsonTypeReflector thread safe
2009-02-27 06:12:37 +00:00
JamesNK eedb01645a -Improve error message when attempting to deserialize to an interface or abstract class 2009-02-08 08:57:45 +00:00
JamesNK 50cca1ec0b -Fix writing raw JValue tokens 2009-01-24 01:06:35 +00:00
JamesNK 803c381c72 -Added deserialize test for jagged arrays
-Made deserializer ignore missing members by default
2009-01-15 08:46:54 +00:00
JamesNK d1757496fb -Fix XmlNodeConverter handling of nested arrays when converting to XML 2009-01-11 09:01:55 +00:00
JamesNK 663540f349 -Added DeserializeNode overload to specify a root element 2009-01-06 09:36:04 +00:00
JamesNK a7b631a5f9 -Fix test 2009-01-06 08:05:04 +00:00
JamesNK 308a0c516b -Fix error message for missing member
-Fix exception not throwing for bad char after semi-colon
2009-01-06 08:03:46 +00:00
JamesNK a6e925b0f3 -Tests 2009-01-04 08:52:04 +00:00
JamesNK 399033059b -Added IJsonLineInfo. Implemented by JsonTextReader, JsonTokenReader, JsonValidatingReader, JToken
-Added line details to JsonTextReader exception messages and JsonValidatingReader errors
-Change JsonSchemaGenerator to disable additional properties on sealed classes
-Fixed JsonSchemaGenerator to not output enum values and options for flag enums
2009-01-04 05:26:26 +00:00
JamesNK 0319263756 -Added JSON Schema implementation
-Move test serialization objects to TestObjects namespace
-Fixed JsonConvert to always write a floating point number with a decimal place
-Changed Type values to serialize and deserialize to type name string
-Fixed JsonWriter to allow objects and arrays to be written in a constructor
-Added JsonContainerAttribute with Id, Title and Description members. JsonObject and JsonArray inherit from this attribute
-Added JsonArrayAttribute. Has flag to control whether array can contain null items.
-Added IsRequired to JsonProperty
-Replaced protected method GetSerializableMembers with GetMemberMappings on JsonSerializer
-Fixed QuoteChar not getting set when parsing property name
-Added Load(JsonReader) to JProperty, JConstructor
-Fixed error when populating JProperty with content from collection
-Added the ability for JsonTokenWriter to write individual values as well as arrays and objects
-Added CreateReader to JToken
-Added FromObject to JToken
-Added ReadFrom to JToken
2009-01-02 05:29:31 +00:00
JamesNK f95868233e -Rename JavaScriptConvert to JsonConvert 2008-12-03 05:52:21 +00:00
JamesNK fc6ffd0549 -Added additional unicode encoding test 2008-11-23 05:11:59 +00:00
JamesNK 5b58fb32de -Changed Value<T> on JObject to support getting nullable values
-Fixed JsonSerializer to correctly skip missing members
2008-11-23 05:09:21 +00:00
JamesNK 950b99ca1f -Fix bug when deserializing to a nullable number 2008-11-02 00:43:32 +00:00
JamesNK 05f8528d97 -Bump assembly version to 3.5 2008-10-27 09:36:55 +00:00