Json.NET v10.0.1 Release Notes
Release Date: 2017-03-20 // about 7 years ago-
- ๐ New feature - Added async read support to JsonReader
- ๐ New feature - Added async write support to JsonWriter
- ๐ New feature - Added async support for loading JObject and JArray
- ๐ New feature - Added non-allocating parsing of double and decimal values
- ๐ New feature - Added support for TypeConverters to netstandard1.0+
- ๐ New feature - Added support for BigInteger to netstandard1.3+
- ๐ New feature - Added support for ISerializable to netstandard1.3+
- ๐ New feature - Added support for XmlDocument to netstandard1.3+
- ๐ New feature - Added support for SerializableAttribute and NonSerializedAttribute to netstandard1.3+
- ๐ New feature - Added ISerializationBinder
- ๐ New feature - Added SerializationBinder properties to JsonSerializer and JsonSerializerSettings
- ๐ New feature - Added TypeNameAssemblyFormatHandling
- ๐ New feature - Added TypeNameAssemblyFormatHandling properties to JsonSerializer and JsonSerializerSettings
- ๐ New feature - Added support for root object selector in JSONPath filters
- ๐ New feature - Added support for multiple names in JSONPath scan filter
- ๐ New feature - Added support for any combination of paths and values in JSONPath filter expressions
- ๐ New feature - Added support for extension data names to NamingStrategy
- ๐ New feature - Added ProcessExtensionDataNames flag to NamingStrategy
- ๐ New feature - Added JsonWriter.AutoCompleteOnClose to control whether JSON is auto-completed on JsonWriter.Close
- ๐ New feature - Added JsonReaderException constructor with path, line number, line position
- ๐ New feature - Added JsonWriterException constructor with path
- ๐ New feature - Added JsonReader.SetToken method overload with option not to update position array index
- ๐ New feature - Added support for automatically calling single constructor on immutable structs
- ๐ Change - Removed .NET 4 portable class library target from NuGet package
- ๐ Change - Removed obsolete JsonConverter.GetSchema method
- ๐ Change - Removed obsolete constructor from DefaultContractResolver
- ๐ Change - Removed obsolete async methods from JsonConvert
- ๐ Change - Removed obsolete OnDeserialized, OnDeserializing, OnSerialized, OnSerializing, OnError from JsonContract
- ๐ Change - Removed obsolete JsonDictionaryContract.PropertyNameResolver
- ๐ Change - Removed obsolete ConstructorParameters, OverrideConstructor, ParametrizedConstructor from JsonObjectContract
- ๐ Change - Obsoleted TypeNameAssemblyFormat properties on JsonSerializer and JsonSerializerSettings
- ๐ Change - Obsoleted SerializationBinder
- ๐ Change - Obsoleted Binder properties on JsonSerializer and JsonSerializerSettings
- ๐ Change - Obsoleted FormatterAssemblyStyle in non-full .NET targets
- ๐ Change - Obsoleted Newtonsoft.Json.Bson (moved to new NuGet package)
- ๐ Change - Improved constructor parameter binding on .NET Core and portable builds
- ๐ Change - Improved error when attempting to convert root JSON object property to an XML attribute
- ๐ Change - Changed exception thrown when parsing invalid Unicode escape sequence to JsonReaderException
- ๐ Change - Changed StringEnumConverter.AllowIntegerValues to also reject reading integer strings
- ๐ Change - Changed StringEnumConverter.AllowIntegerValues to also reject writing enum values with no name
- ๐ Fix - Fixed JsonTextReader.ReadAsXXX methods not erroring on missing commas between values
- ๐ Fix - Fixed error when serializing F# lists with F# 4.1+
- ๐ Fix - Fixed StringEnumConverter reading specified enum names that contain a comma
- ๐ Fix - Fixed using a TraceWriter with nullable bytes
- ๐ Fix - Fixed deserializing null Regex values
- ๐ Fix - Fixed deserializing DataTable with error handling
- ๐ Fix - Fixed DynamicReflectionDelegateFactory creating typed value type constructors
- ๐ Fix - Fixed deserializing with type naming and complex nested generic types
- ๐ Fix - Fixed error when converting certain JSON to XML on .NET Core
- ๐ Fix - Fixed error handling skipping reading the next object value
- ๐ Fix - Fixed date XML precision when converting certain JSON to XML on portable builds
- ๐ Fix - Fixed not serializing readonly properties as references if they have corresponding creator parameters
- ๐ Fix - Fixed type name being written with nullable structs and TypeNameHandling.Auto
- ๐ Fix - Fixed deserializing a duplicate dictionary key from a parameterized constructor
- ๐ Fix - Fixed not erroring when deserializing incomplete JSON with a parameterized constructor
- ๐ Fix - Fixed incorrectly parsing scan filter when name is quoted
- ๐ Fix - Fixed return type for SByte and SByteNullable in JToken.ToObject
- ๐ Fix - Fixed deserializing generic only IList types with a constructor override
- ๐ Fix - Fixed null reference error with ReadAsBytes and an empty JSON object
- ๐ Fix - Fixed StringEnumConverter when EnumMember defines members that differ only by case
- ๐ Fix - Fixed serializing protected override properties
- ๐ Fix - Fixed merging null with complex type and MergeNullValueHandling.Ignore
- ๐ Fix - Fixed roundtripping double.MaxValue and float.MaxValue as dictionary keys
- ๐ Fix - Fixed JsonValidatingReader not closing underlying reader
- ๐ Fix - Fixed writing duplicate nulls to trace with TraceJsonWriter.WriteValue for object, Uri, byte[]
- ๐ Fix - Fixed BsonWriter.WriteValue erroring for null Uri or byte[]
- ๐ Fix - Fixed not calling nullable WriteValue overloads in TraceJsonWriter
- ๐ Fix - Fixed serializer not throwing an error when there is a comment followed by additional content when CheckAdditionalContent is true
- ๐ Fix - Fixed JObject/JArray Parse not throwing an error when there is a comment followed by additional content
- ๐ Fix - Fixed deserializing non-string values in some XML nodes
- ๐ Fix - Fixed converting XML to JSON when json:Array and xmlns:json attributes are used directly on the array's element
- ๐ Fix - Fixed error when attempting to populate values into read-only collection after creating object from non-default constructor