10 Commits
Author SHA1 Message Date
Rodrigo Kumpera abe9dc6206 Revert "Fix object::GetType when remoting is enabled."
This reverts commit 93e2d1dc48.
2013-03-01 10:54:09 -05:00
Rodrigo Kumpera 93e2d1dc48 Fix object::GetType when remoting is enabled. 2013-03-01 10:52:03 -05:00
Miguel de Icaza 311684d140 When serializing floats and doubles, use the InvariantCulture, so that floats are always stored in Json format, not the locale-specific format; As reported on irc 2013-02-28 23:09:50 -05:00
QuickJack d0b2d82e13 Fixes some warnings in System.Web.Extensions.dll 2011-12-29 15:59:41 +01:00
Marek Habersack 63750449f5 [asp.net] Fix for bug #655474. Don't assume an Uri being serialized is an absolute one 2011-03-17 16:15:23 +01:00
Marek Habersack 83dfe82864 2009-08-17 Marek Habersack <[email protected]>
* ScriptingJsonSerializationSection.cs: MaxJsonLength default
	value is 2097152 for .NET 3.5+

2009-08-17  Marek Habersack  <[email protected]>

	* JsonSerializer.cs: serialize fields before properties.

	* JavaScriptSerializer.cs: MaxJsonLength default value for .NET
	3.5 is 2097152

2009-08-17  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: fixed broken tests

svn path=/trunk/mcs/; revision=140098
2009-08-17 20:43:45 +00:00
Marek Habersack 51f5087bf2 2008-12-05 Marek Habersack <[email protected]>
* JsonSerializer.cs: StringBuilder extension methods aren't used
	anymore, changed to calls to static methods in
	StringBuilderExtensions.

	* StringBuilderExtensions.cs: cannot use extension methods here
	because this file is also used in the version 1.0 build which
	doesn't reference System.Core

svn path=/trunk/mcs/; revision=120823
2008-12-05 11:43:42 +00:00
Juraj Skripsky 0594b0199e 2008-09-23 Juraj Skripsky <[email protected]>
* 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
2008-09-23 14:33:54 +00:00
Marek Habersack 93a1d2ad6c 2008-09-19 Marek Habersack <[email protected]>
* 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
2008-09-19 21:13:55 +00:00
Marek Habersack 5defc3fa29 2008-09-17 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	System.Web.Script.Serialization/Json.cs,
	System.Web.Script.Serialization/JsonSerializer.cs and
	System.Web.Script.Serialization/StringBuilderExtensions.cs

	* System.Web.Script.Serialization/Json.cs: helper class to invoke
	de/serializer.

	* System.Web.Script.Serialization/JsonSerializer.cs: new
	implementation of Json serializer that is free of issues found in
	the old one (and faster + simpler).

	* System.Web.Script.Serialization/JavaScriptSerializer.cs: staging
	transition to the new Json (de)serializer. For now deserialization
	is done using the old JSON code, serialization uses the new
	serializer.

	* System.Web.Script.Serialization/StringBuilderExtensions.cs: a
	set of simple StringBuilder extension methods which check the size
	of the builder against some value and throw an exception if the
	value is exceeded.

svn path=/trunk/mcs/; revision=113254
2008-09-17 06:42:10 +00:00