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