Commit Graph
50 Commits
Author SHA1 Message Date
JamesNK 4e8002bdcb -Misc refactoring 2008-10-16 06:16:39 +00:00
JamesNK 68af212cfb -Fix JContainer child ordering when adding multi values 2008-10-10 20:02:05 +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
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 33c2d69b54 -Added compact framework support
-Refactored JavaScriptConvert to not rely on DateTimeOffset when converting dates
-Refactored JsonSerializer to use new CreateInstance on ReflectionUtils
-Deleted JsonHandler
2008-09-21 10:23:55 +00:00
JamesNK e8654d8c03 -Added DefaultValueHandling to JsonSerializer. Option to not write default values when serializing object
-Added JsonSerializerSettings and overloads to JavaScriptConvert.SerializeObject and JavaScriptConvert.DeserializeObject
-Performance improvements
2008-09-14 10:30:38 +00:00
JamesNK b991969d65 -Refactor JsonSerializer.GetConverter 2008-09-08 09:10:00 +00:00
JamesNK ce0148d67f -Fix JsonSerializer.Deserialize to take a TextReader instead of a StringReader 2008-09-08 09:03:21 +00:00
JamesNK d193ae37be -Changed serializer to better work with ICollection<T> when deserializing
-Improved serializer caching of static type data
2008-09-08 08:46:23 +00:00
JamesNK 7b0f3a7ccc -Changed JavaScriptConvert.DeserializeObject to check for addition content after deserializing object 2008-09-04 08:12:36 +00:00
JamesNK 7f4656a583 -Fix test
-Enable XML documentation for Silverlight project
2008-08-24 11:23:19 +00:00
JamesNK 94e3bebcdc -Minor text changes
-Include new documentation resources in solution
2008-08-24 11:11:43 +00:00
JamesNK 83474cbfb7 -Add introduction to help 2008-08-24 07:28:51 +00:00
JamesNK e1cd4a5cff -Updated serializing help page
-Fixed help generation warnings
-Added AsJEnumerable
-Changed extension methods to return IJEnumerable where appropriate
-Extension methods better handle converting JValues
2008-08-23 12:46:28 +00:00
JamesNK c7d99fbd3f -Added IJEnumerable. Changed JEnumerable and JToken to both implement IJEnumerable.
-Included missing JsonConverters from Newtonsoft.Json.Silverlight project.
2008-08-23 04:56:24 +00:00
JamesNK a6662b595d -Include SilverlightTests.cs 2008-08-23 02:10:53 +00:00
JamesNK c312906712 -Include SilverlightTests.cs in Newtonsoft.Json.Tests.csproj 2008-08-23 01:55:42 +00:00
JamesNK 6b6b05c3ca -Fixed solution/project issues
-Bumped assembly version to 3.0
2008-08-23 01:49:07 +00:00
JamesNK 49baf093a2 -Split Silverlight projects into a separate solution: Newtonsoft.Json.Silverlight.sln 2008-08-23 01:38:24 +00:00
JamesNK f6b50141b7 -Unicode string encoding test 2008-08-23 00:54:59 +00:00
JamesNK d4c6a8de26 -Fix GetFieldsAndProperties so that it returns a distinct list of member names in cases where there are overriden abstract generic properties 2008-08-16 07:34:54 +00:00
JamesNK ee281662c4 -Added missing XML comments to new members/classes
-Fixed culture warnings
2008-08-14 07:50:48 +00:00
JamesNK f9772626b8 -Added WriteValue(object) to JsonWriter
-Added JTokenEqualityComparer
-Added additional validation to new IDictionary/ICollection methods on JObject/JArray
-Changed JObject so that properties must have a unique name
-Changed remaining IConvertible calls to use ToXXX methods instead of casting
-Fixed many bugs in new IDictionary/ICollection methods on JObject/JArray
-Fixed AddFirst when no existing children
2008-08-12 11:13:27 +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 f2aa4a2b40 -Added missing files from Silverlight projects
-Fixed JsonWriter depth error when writing current JsonReader position
-Fixed JsonSerializer not fulling skipping properties when putting together constructor values
-Changed JsonSerializer so that property names and constructor params matching is no longer case sensitive
2008-08-02 11:29:37 +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 03fb558bb9 -Not correctly resizing internal string buffer when parsing long JSON documents 2008-05-28 07:28:03 +00:00
JamesNK 8db3846440 -Correct page titles 2008-05-09 22:22:19 +00:00
JamesNK 5f19fd9a7a -Numbers that contain e should be treated as doubles 2008-05-04 03:16:34 +00:00
JamesNK d88e2cf2ca -Fixes to XML documentation
-Sandcastle Help File Builder project added
-Quickstart guides added
2008-05-04 01:26:44 +00:00
JamesNK 3209f09f0f -XML comments for everything!!!
-Some members changed to internal
2008-04-10 10:30:43 +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 e469918596 Added opt-in, opt-out serialization option
Added virtual GetSerializableMembers to JsonSerializer
2008-03-29 10:27:44 +00:00
JamesNK 3d150fe2c3 Changes:
Specified CultureInfo when converting to and from strings across Json.NET.

Fixes:
Clone JToken when adding token with a parent to a new token.
2008-03-16 03:04:28 +00:00
JamesNK 010177a27d 2008-03-15 22:33:29 +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 e2203d8f63 Removed old tests. Refactored DeserializeAnonymousType method. 2008-03-02 06:57:47 +00:00
JamesNK abd8da25a7 Added JsonTextReader support for NaN, PositiveInfinity and NegativeInfinity constants. 2008-03-02 04:04:04 +00:00
JamesNK 8a64988cb6 New features
-New, more concise, LINQ to JSON querying syntax.
-Added FromObject to JObject, JArray.
-JToken WriteTo method now supports JsonConverters.
-JsonSerializer supports serializing to and from LINQ to JSON objects.
-JsonSerializer properly serializes IEnumerable objects.
-Added Depth property to JsonReader.

Changes
-Made JsonReader and JsonWriter abstract. Added JsonTextReader/JsonNodeReader and JsonTextWriter/JsonNodeWriter.
-Removed JavaScriptObject, JavaScriptArray. Replaced by LINQ to JSON objects.
2008-03-02 03:25:47 +00:00
JamesNK 82e86cdcc7 Tests 2008-03-02 03:20:42 +00:00
JamesNK 2fb34b22bb Tests 2008-03-02 03:18:05 +00:00
JamesNK 38f0c6b81d Remove old test files 2008-03-02 03:11:30 +00:00
JamesNK 3c88523556 Change:
JsonSerializer will serialize null rather than throwing an exception.
2008-02-28 09:53:20 +00:00
JamesNK 3109027c75 New features:
Added support for deserializing to an anonymous type with the DeserializeAnonymousType method.
Support for reading, writing and serializing the new DateTimeOffset type.
Added IsoDateTimeConverter. Converts DateTimes and DateTimeOffsets to and from the ISO 8601 format.
Added JavaScriptDateTimeConverter. Converts DateTimes and DateTimeOffsets to and from a JavaScript date constructor.
XmlNodeConverter handles serializing and deserializing JavaScript constructors.
Ability to force XmlNodeConverter to write a value in an array. Logic is controlled by an attribute, json:Array="true".

Changes:
Dates are now serialized in a JSON complient manner, similar to ASP.NET's JavaScriptSerializer or WCF's DataContractJsonSerializer - http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx
Removed the AspNetAjaxDateTimeConverter.
2008-02-28 09:32:09 +00:00
JamesNK c1ce4c366f Json.NET 2.0 Beta
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.
2008-02-10 10:56:19 +00:00
JamesNK 487dc81251 Correct bugs in JavaScript string escaping. Add JavaScriptConvertTest. 2007-09-10 11:01:42 +00:00
JamesNK e65bc2becd 2007-09-08 08:59:38 +00:00