Marek Habersack
128130fb6c
2008-08-22 Marek Habersack <[email protected] >
...
* JsonSerializer.cs: do not perform deep object serialization - it
results in all kinds of problems (including too big size of the
resulting string, recursion errors when two or more objects in the
hierarchy hold a reference to some object) and is not what .NET
code does.
Property name is written only after it is determined if we're
serializing the property or not.
Entire object is serialized only if it's the object requested for
serialization by calling code.
2008-08-22 Marek Habersack <[email protected] >
* Test/System.Web.Script.Serialization/JavaScriptSerializerTest.cs:
marked several of the JavaScriptSerializer tests as not
working. Experiments show that the tests are invalid as they relay
on behavior which is different to .NET's.
* System.Web.Script.Serialization/JavaScriptSerializer.cs:
GetConverter now checks whether the requested type is descendant
from the type supported by teh converter.
svn path=/trunk/mcs/; revision=111421
2008-08-22 20:51:45 +00:00
Marek Habersack
16f4dc9082
2008-08-19 Marek Habersack <[email protected] >
...
* JsonSerializer.cs: implemented a work-around for a bug in the
SerializedLazyDictionary which would fail to serialize a type if
any of its properties would throw an exception.
svn path=/trunk/mcs/; revision=110984
2008-08-19 19:47:39 +00:00
Igor Zelmanovich
9b2b9d6420
merge r108947-108948
...
svn path=/trunk/mcs/; revision=108949
2008-07-27 16:40:30 +00:00
Jb Evain
ba9108786a
2008-05-20 Jb Evain <[email protected] >
...
*.cs: all files from JSon.NET are now re-licensed under the
MIT/X11 license, thanks to his author James Newton-King
for relicensing them.
svn path=/trunk/mcs/; revision=103523
2008-05-19 22:24:40 +00:00
Konstantin Triger
a344135835
convert ArrayList to array only in case of DeserializeObject()
...
svn path=/trunk/mcs/; revision=92838
2008-01-14 10:27:15 +00:00
R. Tyler Ballance
81d13bb3a6
Gak, forgot to move the code after the null check on 'type'`
...
svn path=/trunk/mcs/; revision=87848
2007-10-20 11:33:55 +00:00
R. Tyler Ballance
407dc6bc3f
Fix for handling Nullable types in JSON deserialization
...
re #328836
svn path=/trunk/mcs/; revision=87847
2007-10-20 11:30:19 +00:00
Adar Wesley
56dd3d066a
Added support for TypeResolver to JavaScriptSerializer.
...
Added relevant tests.
svn path=/trunk/mcs/; revision=85395
2007-09-06 09:32:54 +00:00
Konstantin Triger
3a12a9c2e9
fix enum serialization
...
svn path=/trunk/mcs/; revision=83075
2007-07-31 13:58:58 +00:00
Konstantin Triger
25a377d4c3
undo InvariantCulture fix for enums since 'Enum.ToString(System.IFormatProvider)' is obsolete
...
svn path=/trunk/mcs/; revision=83063
2007-07-31 09:12:04 +00:00
Konstantin Triger
063ae32b2e
refactoring
...
svn path=/trunk/mcs/; revision=83054
2007-07-31 07:49:35 +00:00
Konstantin Triger
5e93de63d7
ensure CultureInfo.InvariantCulture is used everywhere
...
svn path=/trunk/mcs/; revision=83053
2007-07-31 07:42:40 +00:00
Konstantin Triger
772c5fd59e
refactoring
...
svn path=/trunk/mcs/; revision=83052
2007-07-31 07:33:52 +00:00
Konstantin Triger
7253fb1adc
refactoring
...
svn path=/trunk/mcs/; revision=83048
2007-07-31 06:49:08 +00:00
Adar Wesley
99aa850634
Implemented support for JavaScriptSerializer.MaxJsonLength and
...
JavaScriptSerializer.RecursionLimit.
svn path=/trunk/mcs/; revision=83000
2007-07-30 15:37:50 +00:00
Konstantin Triger
3baf413bb9
fixing DateTime serialization
...
svn path=/trunk/mcs/; revision=82988
2007-07-30 15:01:31 +00:00
Konstantin Triger
fe410f7cc1
initial implementation for JavaScriptSerializer.MaxJsonLength, JavaScriptSerializer.RecursionLimit
...
svn path=/trunk/mcs/; revision=82757
2007-07-26 12:27:54 +00:00
Igor Zelmanovich
0fbd8e2b37
JavaScriptSerializer.Deserialize method returns correct type object.
...
javascripts array is deserialized into object[] type.
svn path=/trunk/mcs/; revision=81321
2007-07-04 07:49:55 +00:00
Konstantin Triger
5bfd9917ea
support serialization of IDictionary<>; refactoring
...
svn path=/trunk/mcs/; revision=81190
2007-07-02 16:19:24 +00:00
Konstantin Triger
fe62ab9fb5
correctly handle string escaping
...
svn path=/trunk/mcs/; revision=80971
2007-06-28 13:35:13 +00:00
Konstantin Triger
b7037e9f77
correctly read \uXXXX escaped characters
...
svn path=/trunk/mcs/; revision=80969
2007-06-28 13:22:39 +00:00
Igor Zelmanovich
940a290249
added DefaultSerializer property for internal use
...
svn path=/trunk/mcs/; revision=80620
2007-06-24 12:25:27 +00:00
Konstantin Triger
74cb159088
implemented DeserializeObject
...
svn path=/trunk/mcs/; revision=80506
2007-06-21 18:24:28 +00:00
Konstantin Triger
f9fe8387c3
implemented JavaScriptConverter..Deserialize functionality
...
svn path=/trunk/mcs/; revision=80504
2007-06-21 18:16:26 +00:00
Konstantin Triger
db56e73b59
implementation of converters for serialization
...
svn path=/trunk/mcs/; revision=80486
2007-06-21 15:30:02 +00:00
Konstantin Triger
e5f6dc0ce4
remove commented out code
...
svn path=/trunk/mcs/; revision=80485
2007-06-21 15:25:21 +00:00
Konstantin Triger
a763e0b947
Initial JavaScriptSerializer implementation
...
svn path=/trunk/mcs/; revision=79276
2007-06-12 14:39:43 +00:00
Konstantin Triger
a59b434765
Add JSON serialization support based on Json.NET ( http://www.newtonsoft.com )
...
svn path=/trunk/mcs/; revision=79274
2007-06-12 14:37:40 +00:00
Igor Zelmanovich
ff17453e9f
Initial drop for System.Web.Extensions assembly
...
svn path=/trunk/mcs/; revision=78104
2007-05-29 09:33:23 +00:00