2009-03-17 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web.Extensions / System.Web.Script.Serialization / ChangeLog
1 2009-03-17  Marek Habersack  <mhabersack@novell.com>
2
3         * JavaScriptSerializer.cs: if conversion of IDictionary or
4         IDictionary <K,V> to an object is requested, make sure that a
5         concrete type is used (in both cases Dictionary <string, object>).
6         Make sure that if the target type is an IDictionary<K,V> that the
7         key is either an object or a string.
8
9 2009-03-06  Marek Habersack  <mhabersack@novell.com>
10
11         * JsonDeserializer.cs: unquoted key values must ignore leading
12         and trailing whitespace
13
14 2008-12-05  Marek Habersack  <mhabersack@novell.com>
15
16         * JsonSerializer.cs: StringBuilder extension methods aren't used
17         anymore, changed to calls to static methods in
18         StringBuilderExtensions.
19
20         * StringBuilderExtensions.cs: cannot use extension methods here
21         because this file is also used in the version 1.0 build which
22         doesn't reference System.Core
23
24 2008-10-22  Marek Habersack  <mhabersack@novell.com>
25
26         * JsonDeserializer.cs: object can contain more than one unquoted
27         keys.
28
29 2008-09-23  Marek Habersack  <mhabersack@novell.com>
30
31         * JavaScriptSerializer.cs: removed the LazyDictionary class, it's
32         not needed anymore.
33
34 2008-09-23  Juraj Skripsky  <js@hotfeet.ch>
35
36         * JsonSerializer.cs: "SerializeGenericDictionary" is an instance method,
37         fix retrieval of its MethodInfo.
38         Initialize serializeGenericDictionaryMethods (lazily).
39         Add and use GetClosedIDictionaryBase to also handle cases where a
40         non-generic class implements a closed IDictionary<,> (e.g.
41         SomeDictionary : IDictionary<string, object>). Fixes bug #424704.
42         First check for IDictionary<,>, then for IDictionary.
43
44 2008-09-20  Marek Habersack  <mhabersack@novell.com>
45
46         * JsonDeserializer.cs: added support for stand-alone NaN, Infinity
47         and -Infinity values, as well as the same within an array.
48
49 2008-09-19  Marek Habersack  <mhabersack@novell.com>
50
51         * Json.cs: added new Serialize overload which takes a TextWriter
52         for its output parameter.
53         Added Deserialize methods.
54
55         * JsonSerializer.cs: made InitialJavaScriptDateTicks internal.
56         Added new Serialize overload which takes a TextWriter for its
57         output parameter.
58         Added WriteValue overloads for float and double - they must not be
59         converted to strings as IConvertibles because their Max/MinValue
60         end up converted incorrectly.
61
62         * JavaScriptSerializer.cs: adjustments for the new JSON
63         (de)serializer.
64
65         * JsonDeserializer.cs: new JSON deserializer code, fully compliant
66         with the .NET AJAX one.
67