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.
This commit is contained in:
JamesNK
2008-02-28 09:32:09 +00:00
parent c1ce4c366f
commit 3109027c75
25 changed files with 865 additions and 199 deletions
@@ -6,8 +6,7 @@ using NUnit.Framework;
namespace Newtonsoft.Json.Tests
{
[TestFixture]
public class JavaScriptConvertTest
public class JavaScriptConvertTest : TestFixtureBase
{
[Test]
public void EscapeJavaScriptString()