View | Details | Raw Unified | Return to bug 4148
Collapse All | Expand All

(-)a/mcs/class/System.Web.Extensions/System.Web.Script.Serialization/JsonDeserializer.cs (-3 / +3 lines)
Lines 495-515 namespace System.Web.Script.Serialization Link Here
495
					break;
495
					break;
496
496
497
				case JsonType.TRUE:
497
				case JsonType.TRUE:
498
					if (String.Compare (s, "true", StringComparison.Ordinal) == 0)
498
					if (String.Compare (s.Trim(), "true", StringComparison.Ordinal) == 0)
499
						result = true;
499
						result = true;
500
					else
500
					else
501
						converted = false;
501
						converted = false;
502
					break;
502
					break;
503
503
504
				case JsonType.FALSE:
504
				case JsonType.FALSE:
505
					if (String.Compare (s, "false", StringComparison.Ordinal) == 0)
505
					if (String.Compare (s.Trim(), "false", StringComparison.Ordinal) == 0)
506
						result = false;
506
						result = false;
507
					else
507
					else
508
						converted = false;
508
						converted = false;
509
					break;
509
					break;
510
510
511
				case JsonType.NULL:
511
				case JsonType.NULL:
512
					if (String.Compare (s, "null", StringComparison.Ordinal) != 0)
512
					if (String.Compare (s.Trim(), "null", StringComparison.Ordinal) != 0)
513
						converted = false;
513
						converted = false;
514
					break;
514
					break;
515
515

Return to bug 4148