* JavaScriptSerializerTest.cs: added comparison with the
.NET-generated serialization result in TestDeserialize and
TestDeserializeTypeResolver tests.
2009-06-18 Marek Habersack <[email protected]>
* ListViewTest.cs: hushed the output in ListView_Edit ()
svn path=/trunk/mcs/; revision=136383
* JavaScriptSerializer.cs: if conversion of IDictionary or
IDictionary <K,V> to an object is requested, make sure that a
concrete type is used (in both cases Dictionary <string, object>).
Make sure that if the target type is an IDictionary<K,V> that the
key is either an object or a string.
2009-03-17 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added tests for conversion to
IDictionary and IDictionary <K,V> types.
svn path=/trunk/mcs/; revision=129580
* JsonDeserializer.cs: unquoted key values must ignore leading
and trailing whitespace
2009-03-06 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added a test for unquoted tests
surrounded with spaces.
svn path=/trunk/mcs/; revision=128801
* JsonDeserializer.cs: object can contain more than one unquoted
keys.
2008-10-22 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added tests for deserialization of
objects with more than one unquoted key names.
svn path=/trunk/mcs/; revision=116713
* JsonSerializer.cs: "SerializeGenericDictionary" is an instance method,
fix retrieval of its MethodInfo.
Initialize serializeGenericDictionaryMethods (lazily).
Add and use GetClosedIDictionaryBase to also handle cases where a
non-generic class implements a closed IDictionary<,> (e.g.
SomeDictionary : IDictionary<string, object>). Fixes bug #424704.
First check for IDictionary<,>, then for IDictionary.
2008-09-20 Juraj Skripsky <[email protected]>
* JavaScriptSerializerTest.cs: added test for bug #424704.
svn path=/trunk/mcs/; revision=113829
* JsonDeserializer.cs: added support for stand-alone NaN, Infinity
and -Infinity values, as well as the same within an array.
2008-09-20 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added some tests
svn path=/trunk/mcs/; revision=113596
* Json.cs: added new Serialize overload which takes a TextWriter
for its output parameter.
Added Deserialize methods.
* JsonSerializer.cs: made InitialJavaScriptDateTicks internal.
Added new Serialize overload which takes a TextWriter for its
output parameter.
Added WriteValue overloads for float and double - they must not be
converted to strings as IConvertibles because their Max/MinValue
end up converted incorrectly.
* JavaScriptSerializer.cs: adjustments for the new JSON
(de)serializer.
* JsonDeserializer.cs: new JSON deserializer code, fully compliant
with the .NET AJAX one.
2008-09-19 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: enabled some tests which were
failing with the old (de)serializer, but work with the new one.
2008-09-19 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: removed most of the
Newtonsoft JSON code, leaving only ReflectionUtils and
JavaScriptUtils.
svn path=/trunk/mcs/; revision=113590