Commit Graph
20 Commits
Author SHA1 Message Date
JamesNK 6a49425267 -Changed BsonReader/BsonWriter to close the underlying stream by default when closed
-Added CloseInput/CloseOutput to JsonReader/JsonWriter to control whether the underlying stream is closed. Default to true
2011-03-22 05:48:52 +00:00
JamesNK ac6c65f48a -Updated nuspec file for 4.0
-Added Load and Parse helper methods to JToken
-Fixed performance issues when deserializing with partial type names
-Fixed deserializing certain decimal values on classes with non-default constructors
2011-01-08 04:39:33 +00:00
JamesNK 235770442a -Added JsonReader.ReadAsDateTimeOffset
-Fixed losing timezone information when deserializing DateTimeOffsets
2010-09-12 03:39:39 +00:00
JamesNK fbfadea38a -Fix JTokenReader.ReadAsBytes and null values
-Fix JsonProperty inheritance on overriden properties
2010-08-07 07:05:37 +00:00
JamesNK 55adae5525 -Fix reading hexadecimal numbers that contain an e 2010-07-16 07:29:40 +00:00
JamesNK f9b34390f5 -Fix deserializing empty BSON structures
-Fix error message when attempting to deserialize custom dictionary with no default constructor
-Fix serializing private base members marked with JsonProperty attribute
-Fix performance issue when deserializing to object member
2010-01-16 06:10:10 +00:00
JamesNK 75649bfa00 -Add support for reading octal and hexadecimal numbers from JSON
-Fix serializing indexed properties
-Fix serializing JRaw properties
2010-01-08 08:12:40 +00:00
JamesNK 324c4e4bc5 -JsonTextReader, BsonReader performance
-Fix dictionary key encoding when serializing
-Fix WrappedDictionary being set to a property when deserializing
-Fix Silverlight serialization security error
2010-01-01 23:13:35 +00:00
JamesNK f1a9993723 -Added reading and writing binary JSON (BSON) support - work in progress
-Added BsonReader, BsonWriter
-Added support for reading and writing byte arrays to JsonReader, JsonWriter and LINQ to JSON classes
-Added ReadAsBytes to JsonReader
-Changed Silverlight build serializer to look for a TypeConverter
-Changed .NET build to not rely on System.ComponentModel.DataAnnotations assembly to support .NET 4.0 client profile
-Remove DateTimeOffset stand-in from Compact Framework build
-Fixed .NET 2.0 build to run on environments without .NET 2.0 SP1
-Fixed deserialization to always use a new value created from a JsonConverter
-Fixed XmlNodeConverter to support converting comments in JSON
2009-12-06 23:10:14 +00:00
JamesNK 308a0c516b -Fix error message for missing member
-Fix exception not throwing for bad char after semi-colon
2009-01-06 08:03:46 +00:00
JamesNK 399033059b -Added IJsonLineInfo. Implemented by JsonTextReader, JsonTokenReader, JsonValidatingReader, JToken
-Added line details to JsonTextReader exception messages and JsonValidatingReader errors
-Change JsonSchemaGenerator to disable additional properties on sealed classes
-Fixed JsonSchemaGenerator to not output enum values and options for flag enums
2009-01-04 05:26:26 +00:00
JamesNK 0319263756 -Added JSON Schema implementation
-Move test serialization objects to TestObjects namespace
-Fixed JsonConvert to always write a floating point number with a decimal place
-Changed Type values to serialize and deserialize to type name string
-Fixed JsonWriter to allow objects and arrays to be written in a constructor
-Added JsonContainerAttribute with Id, Title and Description members. JsonObject and JsonArray inherit from this attribute
-Added JsonArrayAttribute. Has flag to control whether array can contain null items.
-Added IsRequired to JsonProperty
-Replaced protected method GetSerializableMembers with GetMemberMappings on JsonSerializer
-Fixed QuoteChar not getting set when parsing property name
-Added Load(JsonReader) to JProperty, JConstructor
-Fixed error when populating JProperty with content from collection
-Added the ability for JsonTokenWriter to write individual values as well as arrays and objects
-Added CreateReader to JToken
-Added FromObject to JToken
-Added ReadFrom to JToken
2009-01-02 05:29:31 +00:00
JamesNK f95868233e -Rename JavaScriptConvert to JsonConvert 2008-12-03 05:52:21 +00:00
JamesNK fc6ffd0549 -Added additional unicode encoding test 2008-11-23 05:11:59 +00:00
JamesNK f6b50141b7 -Unicode string encoding test 2008-08-23 00:54:59 +00:00
JamesNK 11ef223875 -Added some XML comments
-Made some utility methods internal
2008-04-08 08:56:32 +00:00
JamesNK ffe2d91279 Change - Heaps of small changes and bug fixes around LINQ to JSON. Many unit tests added.
Change - CultureInfo is now always passed into FormatWith
2008-04-04 22:45:52 +00:00
JamesNK 4ee5fc3578 New features:
Added Skip() method to JsonReader. Skips the current JSON token and any child tokens.
JsonSerializer now has the ability to populate existing members on an object. This behaviour is controlled by the ObjectCreationHandling property.

Changes:
Improved behaviour of JsonReader.Depth property.

Fixes:
Floating point numbers now use ToString("r") to avoid an overflow error when serializing and deserializing a boundary value.
JsonSerializer now correctly serializes and deserializes DBNull.
JsonSerializer no longer errors when skipping a multi-token JSON structure.
2008-03-15 22:31:36 +00:00
JamesNK abd8da25a7 Added JsonTextReader support for NaN, PositiveInfinity and NegativeInfinity constants. 2008-03-02 04:04:04 +00:00
JamesNK 82e86cdcc7 Tests 2008-03-02 03:20:42 +00:00