Commit Graph
50 Commits
Author SHA1 Message Date
James Newton-King 5800e97ff3 -Added Newtonsoft.Json.Metro build (whew, what a pain!)
-Added .gitignore file
2012-03-15 18:34:51 +13:00
James Newton-King fd760e3389 -Added DateFormatHandling to control whether dates are written in the MS format or ISO format, with ISO as the default
-Added DateTimeZoneHandling to control reading and writing DateTime time zone details
-Added reader/writer specific Formatting, DateFormatHandling and DateTimeZoneHandling to JsonSerializerSettings
-Added feature of reader/writer specific settings to be set on JsonReader/JsonWriter when serializing
-Added ReadAsDate to JsonReader
-Added ReadAsString to JsonReader
-Changed JsonTextReader to automatically read ISO strings as dates
-Refactored ReadAsXXX methods and reduce code redundancy
-Removed unused JsonDateTimeSerializationMode
2012-03-04 18:10:20 +06:00
JamesNK 49328ddeb0 -Incremented version to 4.0.8
-Added VersionConverter
-Fixed converting XML to JSON with a default namespace
-Changed Silverlight/Windows Phone assemblies to not be signed
2012-02-10 11:33:45 +00:00
JamesNK 69594a690f -Fixed DataTableConverter including nulls with NullValueHandling.Ignore 2011-11-19 07:04:38 +00:00
JamesNK 5831b11de1 -Fixed flag enum items not being correctly camel cased
-Fixed JsonValidatingReader not validating the first array item twice
-Fixed JsonSchema not correctly validating integers as a subset of decimal
-Changed JsonTextReader.Culture to be CultureInfo.InvariantCulture by default
2011-11-18 09:36:01 +00:00
JamesNK c7de25a37a -Changed time zone conversions to use new TimeZoneInfo instead of TimeZone 2011-11-01 10:45:46 +00:00
JamesNK b305ba100b -Fix occasional error when converting non-long integer properties to XML
-Fix boolean values sometimes being capitalized when converting to XML
-Fix error when deserializing ConcurrentDictionary
-Fix serializing some Uris
-Change KeyValurPairConverter to not rely on the order of the key and value properties
2011-10-31 23:44:10 +00:00
JamesNK 44ab7f71df -Fixed DataTable and DataColumn names not being modified by CamelCasePropertyNamesContractResolver 2011-08-03 00:50:44 +00:00
JamesNK 18c9400054 -Added support for reading byte arrays from JSON integer arrays 2011-08-02 23:53:15 +00:00
JamesNK 6b2238c39c -Added Serializable attribute to exceptions
-Fixed deserializing null values into DataTables
-Fixed error when deserializing readonly IEnumerable<T> array properties
-Fixed not including type name for byte[] values
2011-05-07 02:16:26 +00:00
JamesNK e04432b7e7 -Fixed converting emtpy XML elements with an array attribute not writing other attributes 2011-05-02 11:25:06 +00:00
JamesNK dffe08021d -Added EnumMemberAttribute support to StringEnumConverter 2011-03-25 23:49:13 +00:00
JamesNK 39056de238 -Fixed error when reflecting over type that has multiple index properties inherited
-Added ExpandoObjectConverter that deserializes to primitive values rather than LINQ to JSON objects for ExpandObjects
2011-03-25 22:08:41 +00:00
JamesNK 05a4395a94 -Fixed deserializing a DataTable property 2011-01-28 07:53:57 +00:00
JamesNK 1297d64457 -Fixed DataSetConverter deserializing DataSet properties 2010-12-27 04:14:24 +00:00
JamesNK 87a2bbf831 -Added WriteArrayAttribute to XmlNodeConverter to include an attribute to help round tripping JSON and XML
-Added OmitRootObject to XmlNodeConverter to skip writing the root JSON object when converting XML
2010-12-27 04:00:43 +00:00
JamesNK c046ac36f9 -Added CamelCaseText to StringEnumConverter 2010-12-19 00:49:35 +00:00
JamesNK 15ea91fb63 -Fixed error when deserializing nullable structs
-Fixed writing JSON Schema option label
-Improved error message when converting JSON with an empty property to XML
2010-10-22 23:23:49 +00:00
JamesNK 4cea6d3c09 -Fixed test error when tests run in UTC timezone
-Fixed globalization warnings
-Fixed SelectToken skipping last property name if it is a single character
2010-09-29 06:14:30 +00:00
JamesNK 6591f7f29a -Fixed test when tests run in UTC timezone 2010-09-24 10:32:43 +00:00
JamesNK 235770442a -Added JsonReader.ReadAsDateTimeOffset
-Fixed losing timezone information when deserializing DateTimeOffsets
2010-09-12 03:39:39 +00:00
JamesNK c9ec228942 -Removed HtmlColorConverter to remove System.Drawing.dll dependency
-Fixed culture invariance
-Fixed serialization attributes to work in .NET 2.0
2010-07-01 10:27:18 +00:00
JamesNK b0c6db675e -Added WriteRegex to BsonWriter
-Added RegexConverter
-Fixed BsonWriter writing empty string instead of null
2010-03-27 06:18:40 +00:00
JamesNK 7f7cccd598 -Add support for using implicit/explicit casts when converting a JSON property name to a dictionary value
-Fix DynamicReflectionDelegateFactory erroring when calling static methods
-Fix CustomCreationConverter to return null when converting a null JSON value
2010-03-23 00:21:57 +00:00
JamesNK 6d67aefac7 -Added ReflectionDelegateFactory, DynamicReflectionDelegateFactory and LateBoundDelegateFactory to support switching between dynamic and late bound reflection for medium trust environments
-Added WriteObjectId to BsonWriter
-Added BsonObjectId and BsonObjectIdConverter classes
-Added KeyValuePairConverter
-Added DynamicCodeGeneration flag to DefaultContractResolver
-Changed JsonConverter.ReadJson to add an extra parameter: currentValue
2010-03-17 06:53:47 +00:00
JamesNK 98f3757498 -When converting JSON to XML using XmlNodeConverter, changed special JSON properties ($id, $ref, $type) to be attributes rather than child elements 2010-02-21 03:32:32 +00:00
JamesNK 262bb492f5 -Add LINQ to XML object support to XmlNodeConverter
-Add SerializeXNode, DeserializeXNode methods to JsonConvert
-Remove "-" prefix when serializing a JSON constructor, prefix not compatible with XML naming standard
2010-02-20 07:46:48 +00:00
JamesNK c7facae789 -Added GetSchema, CanRead, CanWrite to JsonConverter
-Fix CustomCreationConverter erroring when writing JSON
2010-02-06 22:55:36 +00:00
JamesNK fa85ebfbbf -Fix passed in JsonConverter not overriding internally specified JsonConverter 2010-01-28 07:20:01 +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 9144bc6c80 -Added DateTimeConverterBase
-Changed class converter to be resolved from contract
-Changed built in converters to be resolved once when the contract is created. Big performance gain!
2009-12-26 18:51:39 +00:00
JamesNK 2e54bf69ab -Fixed ToString culture inconsistence when serializing dictionary key
-Documentation
2009-12-08 22:27:13 +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 b4b3905714 -Added DataSetConverter, DataTableConverter
-Added JPath and SelectToken to JToken
-Fixed schema id not being written for collections
-Fixed TimeSpan serialization on Compact Framework
-Fixed unicode line break string encoding
2009-10-14 02:40:20 +00:00
JamesNK 95caaf9dc1 -Added type descriptor objects to support JObject property databinding
-Added OnErrorAttribute and ErrorContext for handling serialization errors
2009-08-22 12:01:24 +00:00
JamesNK 5167415f47 -Changed empty string to be deserialized as null for nullable types 2009-08-06 08:52:00 +00:00
JamesNK ff5c48660d -Added .NET 2.0 support
-Documentation
2009-08-01 12:06:21 +00:00
JamesNK 6b19c9cf72 -More documentation
-Changed CustomCreationConverter to throw NotImplementedException when serializing
2009-06-19 12:37:49 +00:00
JamesNK affb9ec906 -Added even more detail to no root XML element exception message when converting JSON to XML. Seriously, if you still get stuck here you're an idiot
-Added NullValueHandling, DefaultValueHandling and ReferenceLoopHandling to JsonPropertyAttribute
-Change JsonMemberMapping from a struct to a class. Now has too many properties for a struct
2009-04-22 05:56:34 +00:00
JamesNK 3e22e30261 -Changed DefaultDateTimeFormat on IsoDateTimeConverter to not display zero milliseconds 2009-04-12 01:21:27 +00:00
JamesNK 3630a43f11 -Added StringEnumConverter
-Added BinaryConverter
2009-03-29 01:36:06 +00:00
JamesNK d1757496fb -Fix XmlNodeConverter handling of nested arrays when converting to XML 2009-01-11 09:01:55 +00:00
JamesNK 663540f349 -Added DeserializeNode overload to specify a root element 2009-01-06 09:36:04 +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 500440e04f -Added nullable DateTime support to IsoDateTimeConverter and JavaScriptDateTimeConverter
-Added WriteValue overloads to JsonWriter for nullable types
-Fixed JsonTextWriter.WriteValue(string) to write null instead of an empty string for a null value
-Fixed JsonWriter.WriteValue(object) to no longer error on null values
2008-09-24 09:39:30 +00:00
JamesNK 12ca14261c -Changed IsoDateTimeConverter to use DateTimeFormat when parsing dates
-Added Culture to IsoDateTimeConverter
2008-08-08 23:04:53 +00:00
JamesNK 7cb056d6c7 -Added JsonConverterAttribute. Can be placed on classes and members. Priority is member attribute -> class attribute -> serializer argument converters
-Added DateTimeFormat to IsoDateTimeConverter to customize format
-Changed IConvertible casting to the ToXXXX methods in JsonSerializer
2008-08-04 09:38:24 +00:00
JamesNK 0ae1c636bd Work in progress:
-Silverlight build projects
-JObject now implements IDictionary, JArray now implements IList
2008-06-08 10:41:20 +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