Skip to content

Releases: JamesNK/Newtonsoft.Json

3.0.1

03 Nov 18:50

Choose a tag to compare

  • New feature - Silverlight Json.NET build.
  • New feature - JObject now implements IDictionary, JArray now implements IList.
  • New feature - Added JsonConverterAttribute. Used to define a JsonConverter to serialize a class or member. Can be placed on classes or fields and properties.
  • New feature - Added DateTimeFormat to IsoDateTimeConverter to customize date format.
  • New feature - Added WriteValue(object) overload to JsonWriter.
  • New feature - Added JTokenEqualityComparer.
  • New feature - Added IJEnumerable. JEnumerable and JToken now both implement IJEnumerable.
  • New feature - Added AsJEnumerable extension method.
  • Change - JsonSerializer does a case insensitive compare when matching property names and constructor params.
  • Change - JObject properties must have a unique name.
  • Bug fix - Internal string buffer properly resizes when parsing long JSON documents.
  • Bug fix - JsonWriter no longer errors in certain conditions when writing a JsonReader's position.
  • Bug fix - JsonSerializer skips multi-token properties when putting together constructor values.
  • Bug fix - Change IConvertible conversions to use ToXXXX methods rather than casting.
  • Bug fix - GetFieldsAndProperties now properly returns a distinct list of member names for classes than have overriden abstract generic properties.

2.0.4

03 Nov 18:52

Choose a tag to compare

  • New feature - Documentation.chm included in download. Contains complete API documentation and quick start guides to Json.NET.

2.0.3

03 Nov 18:52

Choose a tag to compare

  • New feature - Added JsonObjectAttribute with ability to opt-in or opt-out members by default.
  • New feature - Added Skip() method to JsonReader.
  • New feature - Added ObjectCreationHandling property to JsonSerializer.
  • Change - LOTS of little fixes and changes to the LINQ to JSON objects.
  • Change - CultureInfo is specified across Json.NET when converting objects to and from text.
  • Change - Improved behaviour of JsonReader.Depth property.
  • Change - GetSerializableMembers on JsonSerializer is now virtual.
  • Fix - Floating point numbers now use ToString("r") to avoid an overflow error when serializing and deserializing a boundary value.
  • Fix - JsonSerializer now correctly serializes and deserializes DBNull.
  • Fix - JsonSerializer no longer errors when skipping a multi-token JSON structure.
  • Fix - Clone a JToken if it already has a parent and is being added as a child to a new token

2.0.2

03 Nov 18:55

Choose a tag to compare

  • New feature - Added FromObject to JObject, JArray for creating LINQ to JSON objects from regular .NET objects.
  • New feature - Added support for deserializing to an anonymous type with the DeserializeAnonymousType method.
  • New feature - Support for reading, writing and serializing the new DateTimeOffset type.
  • New feature - Added IsoDateTimeConverter class. Converts DateTimes and DateTimeOffsets to and from the ISO 8601 format.
  • New feature - Added JavaScriptDateTimeConverter class. Converts DateTimes and DateTimeOffsets to and from a JavaScript date constructor.
  • New feature - XmlNodeConverter handles serializing and deserializing JavaScript constructors.
  • New feature - Ability to force XmlNodeConverter to write a value in an array. Logic is controlled by an attribute in the XML, json:Array="true".
  • New feature - JsonSerializer supports serializing to and from LINQ to JSON objects.
  • New feature - Added Depth property to JsonReader.
  • New feature - Added JsonTextReader/JsonNodeReader and JsonTextWriter/JsonNodeWriter.
  • Change - More concise LINQ to JSON querying API.
  • Change - JsonReader and JsonWriter are now abstract.
  • Change - Dates are now serialized in a JSON complient manner, similar to ASP.NET's JavaScriptSerializer or WCF's DataContractJsonSerializer.
  • Change - JsonSerializer will serialize null rather than throwing an exception.
  • Change - The WriteTo method on LINQ to JSON objects now support JsonConverters.
  • Fix - JsonTextReader correctly parses NaN, PositiveInfinity and NegativeInfinity constants.
  • Fix - JsonSerializer properly serializes IEnumerable objects.
  • Removed - AspNetAjaxDateTimeConverter. Format is no longer used by ASP.NET AJAX.
  • Removed - JavaScriptObject, JavaScriptArray, JavaScriptConstructor. Replaced by LINQ to JSON objects.

2.0.1

03 Nov 18:56

Choose a tag to compare

  • New feature - LINQ to JSON!
  • New feature - Ability to specify how JsonSerializer handles null values when serializing/deserializing.
  • New feature - Ability to specify how JsonSerializer handles missing values when deserializing.
  • Change - Improved support for reading and writing JavaScript constructors.
  • Change - A new JsonWriter can now write additional tokens without erroring.
  • Bug fix - JsonSerializer handles deserializing dictionaries where the key isn't a string.
  • Bug fix - JsonReader now correctly parses hex character codes.

1.3.1

03 Nov 17:38

Choose a tag to compare

  • Bug fix - Fix for incorrect escaping of single and double quotes in JavaScript strings.