Skip to content

Releases: JamesNK/Newtonsoft.Json

5.0.2

03 Nov 18:12
Compare
Choose a tag to compare
  • Remove - Removed WP8 library
  • Fix - Fixed required System.Numerics.dll reference by removing BigInteger from external API calls

5.0.1

03 Nov 18:13
Compare
Choose a tag to compare
  • New feature - Added .NET 4.5 library
  • New feature - Added portable library targeting .NET 4.5, Win8, WP8
  • New feature - Added Path to JToken
  • New feature - Added BigInteger support
  • New feature - Added IReadOnlyCollection and IReadOnlyDictionary<TKey, TValue> support
  • New feature - Added FloatFormatHandling to JsonWriter/JsonSerializer/JsonSerializerSettings
  • New feature - Added DateFormatString to JsonWriter/JsonSerializer/JsonSerializerSettings
  • New feature - Added support for multiple serialization events and use base type serialization events
  • New feature - Added DeserializeAnonymousType overload with JsonSerializerSettings
  • New feature - Added support for specifying root type when serializing JSON with TypeNameHandling.Auto
  • New feature - Added support for creating lists and dictionaries with an IEnumerable constructor
  • New feature - Added IConvertible support to JValue
  • New feature - Added support for serializing custom IConvertible values
  • New feature - Added support for deserializing IList
  • New feature - Added support for converting byte array JValues to Guid
  • New feature - Added support for deserializing byte arrays to Guid
  • Change - NaN and Infinity floating point values are serialized as strings by default
  • Change - Minor breaking changes to JsonSchema type
  • Change - Upgraded Windows Phone assembly to WP8
  • Change - DateTime IDictionary keys are now serialized in ISO date format
  • Change - DataContractAttribute is no longer inherited to match DataConctractSerializer behavior
  • Change - StringEnumConverter converts empty strings to null for nullable enums
  • Change - Guids serialize to a binary UUID in BSON instead of a string
  • Remove - Removed SL4 library
  • Fix - Fixed JTokenWriter returning a null reference
  • Fix - Fixed static fields to no longer be included with fields serialization
  • Fix - Fixed recursively reading type wrapper objects when deserializing
  • Fix - Fixed incorrect namespace when converting XML to JSON
  • Fix - Fixed poor performance when serializing/deserialize dynamic objects
  • Fix - Fixed StringEnumConverter to throw JsonSerializerException on error
  • Fix - Fixed hidden properties not being serialized

4.5.11

03 Nov 18:14
Compare
Choose a tag to compare
  • New feature - Added ITraceWriter, MemoryTraceWriter, DiagnosticsTraceWriter
  • New feature - Added StringEscapeHandling with options to escape HTML and non-ASCII characters
  • New feature - Added non-generic JToken.ToObject methods
  • New feature - Deserialize ISet properties as HashSet
  • New feature - Added implicit conversions for Uri, TimeSpan, Guid
  • New feature - Missing byte, char, Guid, TimeSpan and Uri explicit conversion operators added to JToken
  • New feature - Special case so Version type is correctly deserialized
  • Change - Silverlight and Windows Phone assemblies in NuGet are strong named again
  • Change - Improved CamelCasePropertyNamesContractResolver camel casing property names
  • Change – Explicit JValue conversions are more flexible when converting values
  • Fix - Fixed QuoteChar not being used when writing DateTimes, TimeSpans, Uris and Guids
  • Fix - Fixed JValue constructors for Uri, TimeSpan, Guid assigning incorrect JTokenType
  • Fix - Fixed ReferenceLoopHandling not being used when serializing ISerializable and dynamic values
  • Fix - Fixed potential null reference error when getting attributes
  • Fix - Fixed .NET 2.0 build incorrectly referencing DateTimeOffset

4.5.10

03 Nov 18:16
Compare
Choose a tag to compare
  • New feature - Added Portable build to NuGet package
  • New feature - Added GetValue and TryGetValue with StringComparison to JObject
  • Change - Improved duplicate object reference id error message
  • Fix - Fixed error when comparing empty JObjects
  • Fix - Fixed SecAnnotate warnings
  • Fix - Fixed error when comparing DateTime JValue with a DateTimeOffset JValue
  • Fix - Fixed serializer sometimes not using DateParseHandling setting
  • Fix - Fixed error in JsonWriter.WriteToken when writing a DateTimeOffset
  • Fix - Fixed error when serializing emitted classes that have null constructor parameter names
  • Fix - Fixed empty strings not correctly deserializing as null onto nullable properties

4.5.9

03 Nov 18:17
Compare
Choose a tag to compare
  • New feature - Added JsonValueConverter
  • New feature - Set a property's DefaultValueHandling to Ignore when EmitDefaultValue from DataMemberAttribute is false
  • Fix - Fixed DefaultValueHandling.Ignore not igoring default values of non-nullable properties
  • Fix - Fixed DefaultValueHandling.Populate error with non-nullable properties
  • Fix - Fixed error when writing JSON for a JProperty with no value
  • Fix - Fixed error when calling ToList on empty JObjects and JArrays
  • Fix - Fixed losing decimal precision when writing decimal JValues

4.5.8

03 Nov 18:18
Compare
Choose a tag to compare
  • New feature - Serialize and deserialize multidimensional arrays
  • New feature - Members on dynamic objects with JsonProperty/DataMember will now be included in serialized JSON
  • New feature - LINQ to JSON load methods will read past preceding comments when loading JSON
  • New feature - Improved error handling to return incomplete values upon reaching the end of JSON content
  • Change - Improved performance and memory usage when serializing Unicode characters
  • Change - The serializer now creates objects using GetUninitializedObject when deserializing a Serializable type
  • Fix - Added SecurityTransparent attribute to WinRT build
  • Fix - Fixed infinite loop error caused by error handling upon reaching the end of JSON content

4.5.7

03 Nov 18:19
Compare
Choose a tag to compare
  • Fix - Fixed Metro build to pass Windows Application Certification Kit on Windows 8 Release Preview
  • Fix - Fixed Metro build error caused by an anonymous type
  • Fix - Fixed ItemConverter not being used when serializing dictionaries
  • Fix - Fixed an incorrect object being passed to the Error event when serializing dictionaries
  • Fix - Fixed decimal properties not being correctly ignored with DefaultValueHandling

4.5.6

03 Nov 18:20
Compare
Choose a tag to compare
  • New feature - Added IgnoreDataMemberAttribute support
  • New feature - Added GetResolvedPropertyName to DefaultContractResolver
  • New feature - Added CheckAdditionalContent to JsonSerializer
  • Change - Metro build now always uses late bound reflection
  • Change - JsonTextReader no longer returns no content after consecutive underlying content read failures
  • Fix - Fixed bad JSON in an array with error handling creating an infinite loop
  • Fix - Fixed deserializing objects with a non-default constructor and reference tracking enabled
  • Fix - Fixed deserializing relative Uris
  • Fix - Fixed constructor name result not being type checked

4.5.5

03 Nov 18:21
Compare
Choose a tag to compare
  • New feature - Added ItemIsReference, ItemReferenceLoopHandling, ItemTypeNameHandling, ItemConverterType to JsonPropertyAttribute
  • New feature - Added ItemRequired to JsonObjectAttribute
  • New feature - Added Path to JsonWriterException
  • Change - Improved deserializer call stack memory usage
  • Change - Moved the PDB files out of the NuGet package into a symbols package
  • Fix - Fixed infinite loop from an input error when reading an array and error handling is enabled
  • Fix - Fixed base object error not being handled when deserializing

4.5.4

03 Nov 18:23
Compare
Choose a tag to compare
  • New feature - Added Portable Class Library build
  • New feature - Added support for customizing the JsonConverter, type name handling and reference handling of collection items
  • New feature - Added Path to JsonReaderException/JsonSerializationException messages
  • New feature - Added DateParseHandling to JsonReader
  • New feature - Added JsonContainerContract
  • New feature - Added JsonDictionaryAttribute
  • Change - Instances of Exception have been changed to be a more specific exception
  • Fix - Fixed Windows 8 Application Certification tool error by removing AllowPartiallyTrustedCallersAttribute from assembly
  • Fix - Fixed JsonWriters not using DateTimeZoneHandling