Commit Graph
133 Commits
Author SHA1 Message Date
James Newton-King 95bfe15443 Merge branch 'master' of github.com:JamesNK/Newtonsoft.Json 2013-03-11 19:23:59 +13:00
James Newton-King aab01d93ca -Added IConvertible support to JValue
-Changed IDictionary<DateTime, object> to be serialized in ISO date format
-Fixed DataContractAttribute to not be inherited
2013-03-11 19:23:23 +13:00
James Newton-King 0e753888d0 -Fixed bad performance with dynamic
-Added support for creating collections with an IEnumerable<T> constructor
2013-03-11 17:20:15 +13:00
James Newton-King 92de187a74 -Changed portable assembly to .NET 4.5, Silverlight 5, Win8, WP8
-Fixed incorrect namespace when converting XML to JSON
2013-03-06 23:04:26 +13:00
James Newton-King f9fa0b00e7 -Added DeserializeAnonymousType overload with JsonSerializerSettings
-Added support for specifying the root type when serialize JSON to use with TypeNameHandling.Auto
-Fixed recursively reading type wrapper objects when deserializing
2013-02-23 22:09:51 -08:00
James Newton-King c6eff351a4 -Removed old PocketPC ifdefs 2013-02-10 17:49:36 +13:00
James Newton-King 01c3d48ecf -Change FloatFormatHandling.Zero to DefaultValue
-Documentation
2013-02-09 23:17:05 +13:00
James Newton-King 95dd0c0ba4 -Build 2013-02-02 21:16:15 +13:00
James Newton-King 0db89bf5fa -Added FloatFormatHandling to JsonWriter/JsonSerializer/JsonSerializerSettings
-Added DateFormatString to JsonWriter/JsonSerializer/JsonSerializerSettings
-Changed StringEnumConverter to convert an empty string to null for nullable enums
-Changed NaN and Infinity floating point values to be serialized as strings by default
2013-02-02 14:55:28 +13:00
James Newton-King 7899af09c9 -Examples!
-Fixed build
2013-01-25 00:02:58 +13:00
James Newton-King 68eacc480b -JSON Schema fixes
-Fixed static values being included with fields serialization
-Examples! (work in progress)
2013-01-23 21:39:54 +13:00
James Newton-King e3be3e43db -Added StringEscapeHandling with options to escape HTML and non-ASCII characters
-Added feature to deserialize ISet<T> properties as HashSet<T>
-Fixed ReferenceLoopHandling not being used when serializing ISerializable and dynamic values
2012-11-18 14:36:00 +13:00
James Newton-King f7018719d4 -Trace ShouldSerialize and IsSpecified 2012-11-12 22:24:26 +13:00
James Newton-King 382fb8df62 -Fixed empty strings not correctly deserializing as null onto nullable properties 2012-10-04 00:02:26 +13:00
James Newton-King e2a0191ee5 -Fixed exception message typo
-Fixed serializer sometimes not using DateParseHandling setting
-Fixed error in JsonWriter.WriteToken when writing a DateTimeOffset
-Fixed error when serializing emitted classes that have a constructor with null named parameters (really?)
2012-10-02 21:54:10 +13:00
James Newton-King 6db6db2b40 -Added JsonValueConverter
-Removed SecurityTransparentAttribute from WinRT build
2012-08-15 01:01:59 -07:00
James Newton-King 689f1a763b -Cleanup unit test project compiler warnings 2012-08-04 13:23:41 +12:00
James Newton-King d18e7d6490 -Improved error handling to return incomplete values at end of JSON content 2012-08-04 00:58:10 +12:00
James Newton-King 4e4fdde9c4 -Fixed various multidimensional array bugs 2012-08-01 23:19:02 +12:00
James Newton-King 32dc957880 -Properties on dynamic objects with JsonProperty/DataMember will now be included in serialized JSON
-Serialize and deserialize multidimensional arrays
2012-07-31 20:53:26 +12:00
James Newton-King 55a09d2f73 -Handle partial trust when creating uninitialized objects 2012-07-14 11:56:38 +12:00
James Newton-King cfb2499a35 -Changed serializer to create objects using GetUninitializedObject when deserializing fields 2012-07-10 22:57:27 +12:00
James Newton-King 737f490cac -Fixed KeyValuePair case insensitive deserializing
-Fixed KeyValuePair not using contract resolver for property names when serializing
2012-06-30 12:39:39 +12:00
James Newton-King 55854f1682 -Fixed time zone unit test failure
-Removed Metro IDictionary copy
-Fixed Metro build
2012-06-08 05:21:58 -07:00
James Newton-King 0ba52bbf13 -Fixed ItemConverter not being used when serializing dictionaries
-Fixed an incorrect object being passed to the Error event when serializing dictionaries
2012-06-04 19:01:17 +12:00
James Newton-King d8017e517b -Fixed deserializing relative Uris 2012-05-30 18:25:16 +12:00
James Newton-King aef0759038 -Fixed deserializer attempting to populate JSON onto an object that was created with a non-default constructor
-Added GetResolvedPropertyName to DefaultContractResolver
2012-05-27 21:29:02 +12:00
James Newton-King 2fbf5f7808 -Improved incorrect JSON deserialization error messages
-Fixed constructor name result not being type checked
2012-05-27 01:09:59 +12:00
James Newton-King bdc73900b5 -Added CheckAdditionalContent to JsonSerializer/JsonSerializerSettings
-Fixed bad JSON in an array with error handling creating an infinite loop
-JsonTextReader no longer returns no content after consecutive underlying content read failures
2012-05-17 15:27:26 +12:00
James Newton-King e47a0eab58 -Added IgnoreDataMemberAttribute support 2012-05-13 13:52:26 +12:00
James Newton-King d815dc7749 -Documentation
-Added Path to JsonWriterException
2012-05-07 23:16:24 +12:00
James Newton-King fdedb2a40b -Fixed Metro build 2012-05-06 02:32:24 +12:00
James Newton-King 2dfd0bc940 -Added ItemIsReference, ItemReferenceLoopHandling, ItemTypeNameHandling, ItemConverterType to JsonPropertyAttribute 2012-05-05 20:30:02 +12:00
James Newton-King 0e22f39e12 -Added ItemRequired to JsonObjectAttribute 2012-05-02 23:57:52 +12:00
James Newton-King 7b776e9298 -Added JsonDictionaryAttribute
-Added JsonContainerContract
-Added support for customizing the JsonConverter, type name handling, reference handling of collection items
2012-04-22 23:17:58 +12:00
James Newton-King a7bddf989f -Added Path to JsonReaderException/JsonSerializationException messages
-Added JsonException
-Fixed all Exceptions thrown to be more specific
2012-04-21 17:25:44 +12:00
James Newton-King 852a980659 -Added DateParseHandling 2012-04-19 00:02:11 +12:00
James Newton-King 10256fcf68 -Added Portable Class Library build 2012-04-18 21:02:34 +12:00
James Newton-King 11310fdf05 -Incremented version to 4.5.2
-Fixed failing turkey test
-XML documentation
2012-04-11 18:39:43 +12:00
James Newton-King 436c3f9a93 -Fixed reading invalid unicode surrogate pairs 2012-04-10 20:48:42 +12:00
James Newton-King e3cec969ef -Added support for Serializable attribute and MemberSerialization.Fields
-Added support for ignoring properties with NonSerializable attribute
-Added MaxDepth to JsonReader/JsonSerializer/JsonSerializerSettings
2012-04-08 19:33:09 +12:00
James Newton-King 83618b1ea0 -Line endings 2012-04-08 18:10:07 +12:00
James Newton-King 8471c4ffe1 -Added IgnoreSerializableInterface to DefaultContractResolver
-Changed serializing ISerializable types under partial trust to error to fix security issue
-Fixed LinqBridge collision error in .NET 2.0 by moving types to a different namespace
-Fixed JObject.Keys error when object has no items
2012-03-18 16:24:30 +13:00
James Newton-King 5800e97ff3 -Added Newtonsoft.Json.Metro build (whew, what a pain!)
-Added .gitignore file
2012-03-15 18:34:51 +13:00
James Newton-King f9e5745425 -Changed serializer to fallback to use a private default constructor
-Changed error message when deserializing a JSON object/array onto the wrong kind of type to be more descriptive
2012-03-10 17:39:39 +13:00
James Newton-King fd760e3389 -Added DateFormatHandling to control whether dates are written in the MS format or ISO format, with ISO as the default
-Added DateTimeZoneHandling to control reading and writing DateTime time zone details
-Added reader/writer specific Formatting, DateFormatHandling and DateTimeZoneHandling to JsonSerializerSettings
-Added feature of reader/writer specific settings to be set on JsonReader/JsonWriter when serializing
-Added ReadAsDate to JsonReader
-Added ReadAsString to JsonReader
-Changed JsonTextReader to automatically read ISO strings as dates
-Refactored ReadAsXXX methods and reduce code redundancy
-Removed unused JsonDateTimeSerializationMode
2012-03-04 18:10:20 +06:00
James Newton-King fb2a5998bc -Added Path to JsonReaderException, JsonSchemaException and ValidationEventArgs
-Fixed Path on JsonValidatingReader
-Fixed path queries over constructors
2012-02-25 16:44:07 +13:00
James Newton-King 4f8832adc0 -Fixed error when deserializing nullable types with no content
-Changed JsonReaders to set TokenType to JsonToken.None after finishing content
-Changed the ReadAsXXX methods to return null instead of throwing an error when there is no content
2012-02-19 01:25:47 +13:00
JamesNK ea72817034 -Fixed empty string being changed to null on object properties 2012-02-05 23:20:29 +00:00
JamesNK 6ce847411a -Fixed attributes on nullable structs not being used
-Fixed deserializing nullable enums
-Fixed JsonConstructorAttribute incorrectly being allowed on properties
-Added new NUnit
2012-02-03 02:31:56 +00:00