Commit Graph
51 Commits
Author SHA1 Message Date
James Newton-King 1fa5e4a22e -Added missing XML documentation
-Fixed potential null reference error when getting attributes
-Performance documentation
2012-10-27 19:25:04 +13:00
James Newton-King efc946d8df -Added GetValue and TryGetValue with StringComparison to JObject
-Fixed SecAnnotate warnings
-Fixed error when comparing empty JObjects
-Fixed error when comparing DateTime JValue with a DateTimeOffset JValue
2012-09-13 22:49:35 +12:00
James Newton-King d9c8d78d77 -Added IgnoreAll to DefaultValueHandling which ignores all default class/struct/privative values
-Added support for DataMemberAttribute's EmitDefaultValue
-Fixed losing decimal precision when writing JValues
-Fixed error when calling ToList on empty JObjects and JArrays
2012-09-01 13:34:07 +12:00
James Newton-King f5fec30c2a -Fixed error when writing JSON for a JProperty with no value
-LINQ to JSON performance improvements
2012-08-11 20:12:49 +12:00
James Newton-King 55854f1682 -Fixed time zone unit test failure
-Removed Metro IDictionary copy
-Fixed Metro build
2012-06-08 05:21:58 -07:00
James Newton-King d63e662bda -Fixed DateParseHandling not being overridden on serializer proxy
-License text on all source files
2012-04-25 09:32:32 +12:00
James Newton-King a7bddf989f -Added Path to JsonReaderException/JsonSerializationException messages
-Added JsonException
-Fixed all Exceptions thrown to be more specific
2012-04-21 17:25:44 +12:00
James Newton-King 10256fcf68 -Added Portable Class Library build 2012-04-18 21:02:34 +12:00
James Newton-King 436c3f9a93 -Fixed reading invalid unicode surrogate pairs 2012-04-10 20:48:42 +12:00
James Newton-King 2e1211f689 -Fixed comparing JObjects to ignore property order 2012-04-09 16:20:42 +12:00
James Newton-King 83618b1ea0 -Line endings 2012-04-08 18:10:07 +12:00
James Newton-King 8471c4ffe1 -Added IgnoreSerializableInterface to DefaultContractResolver
-Changed serializing ISerializable types under partial trust to error to fix security issue
-Fixed LinqBridge collision error in .NET 2.0 by moving types to a different namespace
-Fixed JObject.Keys error when object has no items
2012-03-18 16:24:30 +13:00
James Newton-King 5800e97ff3 -Added Newtonsoft.Json.Metro build (whew, what a pain!)
-Added .gitignore file
2012-03-15 18:34:51 +13:00
JamesNK faf6426527 -Rewrote JsonTextReader to use internal buffer to improve performance
-Improved JsonSerializer to cache contract/converters where possible to improve performance
-Improved JsonTextReader error message when additional JSON content found
-Fixed internal exception thrown when deserializing Decimal/DateTimeOffset/Byte lists
-Fixed various JsonTextReader bugs
2012-01-16 06:53:41 +00:00
JamesNK 9ef17d05a3 -Fixed bad BSON when writing long strings of complex UTF8 characters
-Fixed error not being raised for additional content in JSON string for JArray.Parse and JObject.Parse
2011-11-19 03:16:04 +00:00
JamesNK 3baf856f92 -Documentation
-Fixed JObject loading JSON with comments
-Fixed error when using a Specified property with no setter
-Fixed transient constructor error on Windows Phone 7
-Fixed deserializing null values into nullable generic dictionaries
2011-10-01 04:41:09 +00:00
JamesNK 7d3ce867da -Added ToObject to JToken for deserializing LINQ to JSON objects to a .NET object
-Added support for Guid, TimeSpan and Uri to LINQ to JSON
2011-08-05 08:38:47 +00:00
JamesNK f32e1f53c5 -Fixed JToken Load and Parse methods not checking for incomplete content 2010-12-27 10:06:35 +00:00
JamesNK 8546dc4f62 -Added DeserializeObject overload 2010-09-19 10:36:17 +00:00
JamesNK 11ce71ee8b -Added INotifyCollectionChanged to JContainer in .NET 4.0 build
-Changed .NET 3.5 and .NET 4.0 builds to target client frameworks
-Fixed JSON Schema not raising an error for additional properties when the schema has no properties
2010-09-11 22:56:13 +00:00
JamesNK 12a91cce9e -Updated source code to VS2010
-Updated main project to .NET 4.0
-Updated to psake 4.0
-Changed assembly version to 4.0.0.0
-Added ICustomTypeDescriptor implementation to JObject, removed JTypeDescriptionProvider and JTypeDescriptor
-Changed serialization of collections to use iterator rather than indexer
-Removed Compact Framework project
-Fixed XML documentation warnings
2010-08-31 02:19:41 +00:00
JamesNK 6c817fee93 -Improve OverflowException message for integer values larger than an Int64 2010-04-25 07:26:01 +00:00
JamesNK 29b1ff5f0a -Add support for sharing a static cache for contract resolvers inheriting from DefaultControlResolver
-Correct error message when casting non-JValue to a privative type
2010-02-27 22:41:25 +00:00
JamesNK 621916f5a6 -Implemented INotifyCollectionChanged on JContainer in Silverlight
-Added StreamingContext to JsonSerializer
-Added CreateMemberValueProvider method to DefaultContractResolver
-Fixed not falling back the original class from the metadata class when attribute not found
2010-01-19 08:22:35 +00:00
JamesNK 961945657a -Added JsonPrimitiveContract and JsonLinqContract
-Removed JsonRaw and replaced with JRaw
-Fixed properties on existing derived values not being populated during deserialization
2009-12-27 03:30:43 +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 621b647654 -Added DBNull support to JValue 2009-11-05 06:04:58 +00:00
JamesNK 75627d6292 -XML documentation
-Changed OnError to be available in .NET 2.0, Silverlight and Compact Framework builds
-Added StreamingContext stand-in for frameworks where it isn't available
-Split test classes out of JsonSerializerTests
2009-10-10 00:54:01 +00:00
JamesNK be8d951c03 -Fixed exception when loading JObject with multiple properties of the same name. Last property will be used
-Removed redundant ValidateObject method from JContainer
2009-10-03 04:33:15 +00:00
JamesNK fac4f481b3 -Added set indexer to JToken 2009-09-18 21:38:50 +00:00
JamesNK 379c3ce09b -Added more IBindingList functionality
-Fixed many bugs around JProperty and JObject
-Changed JProperty constructor that doesn't take a value to internal
-Added many unit tests
-Renamed CloneNode to CloseToken
-Changed JPropertyDescriptor to always return the token rather than value
2009-09-04 13:46:47 +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 7f0bafeea7 -Fixed generic type deserialization with type name tracking enabled 2009-07-30 08:59:07 +00:00
JamesNK 6b19c9cf72 -More documentation
-Changed CustomCreationConverter to throw NotImplementedException when serializing
2009-06-19 12:37:49 +00:00
JamesNK 67654ec106 -JsonObjectAttribute will now force a collection class to be serialized as an object
-Renamed ThreadSafeDictionaryWrapper to ThreadSafeStore
2009-06-18 12:23:49 +00:00
JamesNK 63160b04ff -Added documentation (gasp!)
-Fixed serialization of Uri members on Silverlight/Compact Framework
-Fixed serialization of JToken members
-Fixed (hopefully) cache threading issues
2009-06-16 09:50:59 +00:00
JamesNK d160b9f587 -Fixed serializer handling of comments in JSON 2009-05-31 12:10:54 +00:00
JamesNK fec0ec5a1d -Lots of XML code comments
-Added type name handling to serializer
-Fixed various compilation warnings
2009-05-30 06:13:51 +00:00
JamesNK a0a8599d3d -Fix bug when JValue of type string has a null string value
-Fix JToken casting bugs to float and decimal
2009-04-30 10:12:42 +00:00
JamesNK 52f8657106 -Changed JObject to enumerate over KeyValuePair<string, JToken> rather than JToken. Breaking change. 2009-04-27 08:49:08 +00:00
JamesNK ed53b0c9ad -Rename JsonTokenReader, JsonTokenWriter, JsonTokenType to JTokenReader, JTokenWriter, JTokenType 2009-04-10 04:45:58 +00:00
JamesNK 50cca1ec0b -Fix writing raw JValue tokens 2009-01-24 01:06:35 +00:00
JamesNK 663540f349 -Added DeserializeNode overload to specify a root element 2009-01-06 09:36:04 +00:00
JamesNK a6e925b0f3 -Tests 2009-01-04 08:52: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 5b58fb32de -Changed Value<T> on JObject to support getting nullable values
-Fixed JsonSerializer to correctly skip missing members
2008-11-23 05:09:21 +00:00
JamesNK a858bebc93 -Changed JSON Date constructors to automatically deserialize to a date 2008-10-27 07:57:26 +00:00
JamesNK 3038a8d79e -Modified project to support signed flag. Does not output InternalsVisibleTo attributes when present
-Improved error message on JObject and JArray Load method
-Added WriteRawValue
-Added missing XML documentation
-Added SerializeObject overload that takes a formatting flag
2008-10-08 09:01:55 +00:00
JamesNK 5bb0c17eec -Renamed Identifier to JsonRaw
-Added support for reading, writing and serializing raw JSON
2008-09-27 23:37:55 +00:00