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