[Mono-bugs] [Bug 573691] DataContractJsonSerializer bug with floating point special values
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jan 27 00:10:29 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=573691
http://bugzilla.novell.com/show_bug.cgi?id=573691#c1
--- Comment #1 from Atsushi Enomoto <aenomoto at novell.com> 2010-01-27 05:10:28 UTC ---
We indeed has bugs, but not in the form that those tests expect. Let's first
make sure to check the JSON specification before judging blindly that our
implementation is buggy. .NET is a lot buggier than ours on JSON implementation
especially regarding parsing numbers.
>From http://json.org/ :
number
int
int frac
int exp
int frac exp
int
digit
digit1-9 digits
- digit
- digit1-9 digits
frac
. digits
exp
e digits
digits
digit
digit digits
e
e
e+
e-
E
E+
E-
The only way that "NaN", "INF" and "-INF" to become valid is, to make them into
a string, not a number. JSON strings must be double-quoted, so raw NaN is
invalid in the context of JSON string either.
On serialization we are also buggy to output NaN, which should be fixed to
output "NaN" (double quoted).
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list